Expandable Card On Click
A grid of cards that expand into a modal overlay when clicked. Uses Framer Motion's layoutId for smooth shared element transitions.

Classic look
The best in class design.

Offroading
Comes with a 4x4 offroading system.

7 Seater
Enough space for your family.

Low maintenence
No maintenence is required, ever.
Cards display in a two-column grid with image, title, and description. Clicking a card triggers a shared element transition where the image, title, and description animate smoothly to their expanded positions. The layoutId prop connects corresponding elements between collapsed and expanded states.
The expanded card renders in a fixed overlay with a semi-transparent black backdrop. Additional content appears with a fade-in animation after the layout transition completes. Clicking outside the card or pressing Escape closes the modal using the useOutsideClick hook and keyboard event listener.
The backdrop uses AnimatePresence for enter/exit animations. Cards have consistent shadow styling and responsive sizing with the expanded modal capped at max-w-sm.
Works well for product catalogs, car dealership sites, real estate listings, and any gallery where users need to see more detail without leaving the page.
Included with All-Access
One payment unlocks the code for this block and every other block, template and page.
Get All-AccessAbout this block
Cards display in a two-column grid with image, title, and description. Clicking a card triggers a shared element transition where the image, title, and description animate smoothly to their expanded positions. The layoutId prop connects corresponding elements between collapsed and expanded states.
The expanded card renders in a fixed overlay with a semi-transparent black backdrop. Additional content appears with a fade-in animation after the layout transition completes. Clicking outside the card or pressing Escape closes the modal using the useOutsideClick hook and keyboard event listener.
The backdrop uses AnimatePresence for enter/exit animations. Cards have consistent shadow styling and responsive sizing with the expanded modal capped at max-w-sm.
Works well for product catalogs, car dealership sites, real estate listings, and any gallery where users need to see more detail without leaving the page.


