Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Card stack to click through v1.0.0

Use this resource to flip through a series of cards on click

New

  • 592 downloads
  • 163 likes
  • 165 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install click-through-card-stack

First time: connect the CLI with

npx --yes palatekit@latest login

The agent adds to your page a React (Tailwind) component that handles card rotation and animation, honoring the reduced-motion preference. You provide your cards, the visible depth (1 to 3) and the styling. You get a stack you can cycle through endlessly.

Mostly picked by

Updated November 2, 2026

Details

Generates with
Your agent's model
Uses
  • React
  • Tailwind CSS
  • lucide-react
  • motion
  • clsx
  • tailwind-merge
Licence
MIT

Similar resources

View all

What you get

  • README.md: usage guide
  • card-stack.stories.tsx: the author's original file
  • card-stack.tsx: the author's original file
  • card-stack.mdx: the author's original file

Good fit for

  • Scrolling testimonials
  • Tutorial in successive cards
  • Product picks to flip through

Not for

  • A site without React or Tailwind CSS, without adapting it
  • A motion-sensitive audience, without adding prefers-reduced-motion

Tags

  • card
  • stack
  • loop
  • click
  • accessibility

About

You say

"Add the click-through card stack for my tips, with three cards visible."

A looping card stack where the top card moves to the back on click.

Component published by hari under the MIT license, resource page and guide written by PalateKit.

Show more

Prerequisites

You bring
Your React project with Tailwind CSS and Your colors and texts
Dependencies
React, Tailwind CSS, lucide-react, motion, clsx, and tailwind-merge

How to use it

  1. Copy card-stack.tsx into your React project's components folder.
  2. Install the required packages: lucide-react, motion, clsx, tailwind-merge.
  3. Ask the agent to place the component on the page and match it to your brand.

Content preview

Files

  • animata/card/card-stack.stories.tsx4.3 KB
  • animata/card/card-stack.tsx18.1 KB
  • content/docs/card/card-stack.mdx5.8 KB
  • LICENSE1.1 KB
  • NOTICE-PALATEKIT.md0.4 KB
  • README.md0.8 KB

Origin and licence

Modified by PalateKit

Author
hari
Source
github.com/codse/animata/tree/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/animata/card/card-stack.tsx
Licence
MIT

Notice

Version modifiée de « card-stack » (hari, MIT) : traduction française et fiche par PalateKit.

User reviews

–

No ratings yet

Loading reviews…

Delete your review?

Your rating and comment will be removed from the page.

Frequently asked questions

Which packages do I install?

React, Tailwind CSS and lucide-react, motion, clsx, tailwind-merge.

Does it work without Next.js?

Yes, in any React project with Tailwind CSS; just drop the "use client" directive if your tooling does not support it.