StealThis .dev

Card Navigation

Mobile card-grid navigation with icon tiles laid out in a 2×3 grid. Tap a card to open its content screen with animated transition.

Open in Lab
css vanilla-js
Targets: JS HTML

Code

Card Navigation

A mobile card-grid navigation showing a 2×3 grid of icon tiles. Each card navigates to a content screen with a smooth slide transition and back button.

Features

  • 2×3 grid of navigation cards with icons and labels
  • Tap-to-navigate with slide transition
  • Back button to return to grid
  • Responsive within phone frame
  • Keyboard accessible

How it works

  1. Cards are displayed in a CSS Grid layout within a phone frame
  2. Clicking a card triggers a slide-left transition to reveal the content screen
  3. A back button slides back to the grid view
  4. Active card is tracked via data attributes