Interactive Card StackA scattered stack of photo cards.

Cards & ModalsImage galleryMoodboardPortfolio

Scarlet macaw

Toco toucan

Blue and gold macaw

Green-headed tanager

Northern mockingbird

Scarlet macaw in focus

drag, click, or use the arrow keys

Add to your project

One command adds this component to your project.

1

Run the following command. New project? Run npx shadcn@latest init first to set up Tailwind and path aliases.

npx shadcn@latest add @aicanvas/interactive-card-stack
2

For dark mode, add the dark class to your <html> element:

Optional
<html class="dark">

Install with AI Canvas MCP

With AI Canvas MCP, your AI knows every component we ship. Ask for one inside Claude Code, Codex, or Cursor and it installs the component you pick. Works with any AI Canvas account, free or premium.

About Interactive Card Stack

Interactive Card Stack is a loose pile of five photo cards scattered around a focused center, each a polaroid-style print that breathes gently on its own slow loop. Click any card to pull it to the front, drag the front card sideways to cycle, or use the arrow keys, and the rest spring into a new arrangement around it. Motion drives the scatter, the breathing, and the focus shuffle; Tailwind covers the layout, and it honours reduced-motion settings. Drop in your own photos and titles, and set an optional link per card. It suits image galleries, moodboards, and portfolio sections where the photo itself is the point.

Built with

MotionTailwind CSS

Frequently asked questions

Is Interactive Card Stack free to use?
Yes. Interactive Card Stack is part of the free AI Canvas library and is open source under the MIT license, so you can use it in personal and commercial projects.
How do I install Interactive Card Stack?
One command: npx shadcn@latest add https://aicanvas.me/r/interactive-card-stack.json, free with a free AI Canvas account. Or connect the AI Canvas MCP server and ask your AI editor to install Interactive Card Stack for you. You can also copy the source straight from the Code tab, no account needed. It works in any React project with Tailwind CSS.
What is Interactive Card Stack built with?
Interactive Card Stack is built with React and TypeScript, using Motion and Tailwind CSS. It ships with both light and dark styling.
Where would I use Interactive Card Stack?
Common uses include Image gallery, Moodboard, and Portfolio. Like every AI Canvas component, it is self-contained and drops into any React project.
Can I remix Interactive Card Stack with AI?
Yes. Interactive Card Stack ships with one comprehensive AI prompt written against the real source code. Open "Remix with AI" on this page to read and copy it into Claude, Cursor, ChatGPT, or any AI tool. Prompts are for remixing your own variation; for the exact component, install it with the one-command CLI.

Featured in collections

More like this