Chetan Verma

Stacked Cards Interaction

Galleries 796

About

a simple stacked cards interaction component made with framer motion and tailwind css.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Stacked Cards Interaction to your project and fits it to your theme.

Code

How Stacked Cards Interaction is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { StackedCardsInteraction } from "@/components/ui/stacked-cards-interaction"

const StackedCardsInteractionDemo = () => {
    return(
          <StackedCardsInteraction
    cards={[
      {
        image:
          "https://cdn.21st.dev/assets/mirror/19/1991f46523d08e01b25feb3bd63dd633b6615aa1633c390d330d23ed5d4e151b.jpg",
        title: "Card 1",
        description: "This is the first card",
      },
      {
        image:
          "https://cdn.21st.dev/assets/mirror/47/4787cedc2d76c785a9dff04702b115561a9aedab29788f8ee5c331aba294013d.jpg",
        title: "Card 2",
        description: "This is the second card",
      },
      {
        image:
          "https://cdn.21st.dev/assets/mirror/e0/e069490e98dcec696dec62acb183ea27181575cc47857611011bcfc0004ee881.jpg",
        title: "Card 3",
        description: "This is the third card",
      },
    ]}
  />
    )
}

export { StackedCardsInteractionDemo }

Dependencies

More by Chetan Verma

View all
  • Floating Action Menu

    Floating Action Menu

    1.5K
  • Animated Tabs

    Animated Tabs

    1.5K
  • Video Player

    Video Player

    1.3K
  • Dropdowm Menu

    Dropdowm Menu

    548
  • Input With Tags

    Input With Tags

    524
  • Avatar Group

    Avatar Group

    505
  • Stacking Navbar

    Stacking Navbar

    334
  • Audio Player

    Audio Player

    332

More in Galleries

View all
  • Thumbnail image viewer

    Thumbnail image viewer

    43
  • Animated Gallery

    Animated Gallery

    1.4K
  • File Upload

    File Upload

    18
  • Editorial Collage Hero

    Editorial Collage Hero

    430
  • 3D Parallax Unfurling Gallery

    3D Parallax Unfurling Gallery

    981
  • Image Gallery

    Image Gallery

    123
  • Tilted Grid Hero

    Tilted Grid Hero

    1.5K
  • Hero Section 6

    Hero Section 6

    882