Pace UI

Layered Stack

Cards 33

About

An interactive card stack that fans children into a shuffled deck and re-stacks them into a neat grid on hover, using GSAP for the transition.

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

Code

How Layered Stack is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { LayeredStack } from "@/components/ui/layered-stack";

export default function LayeredStackDemo() {
  return (
    <div>
      <LayeredStack className="grid grid-cols-4 gap-4 p-8">
        {[...Array(12)].map((_, i) => (
          <div
            key={i}
            className="text-muted-foreground bg-card flex size-32 items-center justify-center rounded-xl border text-xl font-medium"
          >
            {i + 1}
          </div>
        ))}
      </LayeredStack>
    </div>
  );
}

Dependencies

More by Pace UI

View all
  • Dot Loader

    Dot Loader

    905
  • Flip Reveal

    Flip Reveal

    636
  • Dot Flow

    Dot Flow

    258
  • Draw Line Text

    Draw Line Text

    103
  • Liquid Glass

    Liquid Glass

    54
  • Liquid Cursor

    Liquid Cursor

    41
  • Reveal Text

    Reveal Text

    6
  • Form Textarea

    Form Textarea

    4

More in Cards

View all
  • Stats cards with links

    Stats cards with links

    33
  • Course Design Cards

    Course Design Cards

    1.1K
  • Card

    Card

    70
  • Statistics Card 2

    Statistics Card 2

    264
  • Statistics Card 10

    Statistics Card 10

    263
  • Card

    Card

    17
  • Card Studio

    Card Studio

    9
  • The Item one

    The Item one

    3