Pace UI

Layered Stack

Cards 50

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

    976
  • Flip Reveal

    Flip Reveal

    670
  • Dot Flow

    Dot Flow

    271
  • Draw Line Text

    Draw Line Text

    123
  • Liquid Glass

    Liquid Glass

    65
  • Liquid Cursor

    Liquid Cursor

    51
  • Calendar Heatmap Chart

    Calendar Heatmap Chart

    22
  • Radar Chart Grid Custom

    Radar Chart Grid Custom

    12

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.4K
  • Stats cards with links

    Stats cards with links

    46
  • Statistics Card 7

    Statistics Card 7

    342
  • Statistics Card 2

    Statistics Card 2

    322
  • Card Studio

    Card Studio

    37
  • Card

    Card

    65
  • Admin Dashboard Cards

    Admin Dashboard Cards

    44
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    779