Back to components
ComponentCardFree

Card Shuffle Stack React component

A loose pile of photo cards you shuffle through: throw the top card aside and it tucks in under the stack, bring the bottom one back on top, with drag and flick physics, buttons, arrow keys, optional autoplay and a reduced-motion fallback.

About the Card Shuffle Stack component

Card Shuffle Stack shows a set of cards as a loose pile instead of a row. Throw the top card aside and it tucks itself in under the stack; go back and the bottom card slides out from under the pile and lands on top. It behaves like shuffling real cards, which makes paging through a team, a lookbook or a set of testimonials feel tactile.

You can drag and flick the top card, use the buttons underneath, or press the arrow keys. A counter and a row of thin indicators show where you are, and it can advance on its own if you turn on autoPlay.

When to use it

Use it for team members, featured products, testimonials or a small set of highlights, where one card at a time is the point and five to ten cards is the range.

For long lists or content people need to compare side by side, a grid or carousel is clearer.

Installation

Add the Card Shuffle Stack component to your project with the shadcn CLI. It lands in components/card-shuffle-stack.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/card-shuffle-stack

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install motion lucide-react clsx tailwind-merge

More Card components

Distorted Photo Card
Free
Pixelate Hover Card
Free
Bouncing Card Fan
Free
Image Box
Free
Swinging ID Badge
Free
Flip Box
Free