Théo Balick

Stagger

Component

About

A wrapper that animates a list or grid of items into view one after another, either on mount or when scrolled into the viewport.

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

Code

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

Usage.tsx

import { Stagger } from "@/components/ui/stagger";

const people = [
  { name: "Lina Moreau", role: "Design" },
  { name: "Marc Dubois", role: "Engineering" },
  { name: "Sofia Rossi", role: "Product" },
  { name: "Noah Weber", role: "Support" },
];

export default function StaggerDemo() {
  return (
    <Stagger className="flex w-full max-w-xs flex-col gap-2" interval={0.1}>
      {people.map((person) => (
        <div
          key={person.name}
          className="flex items-center gap-3 rounded-lg border bg-card p-3"
        >
          <div className="flex size-8 items-center justify-center rounded-full bg-foreground text-xs font-medium text-background">
            {person.name[0]}
          </div>
          <div className="flex flex-col">
            <span className="text-sm font-medium">{person.name}</span>
            <span className="text-xs text-muted-foreground">{person.role}</span>
          </div>
        </div>
      ))}
    </Stagger>
  );
}

Dependencies

More by Théo Balick

View all
  • Interactive Grid

    Interactive Grid

    150
  • Footer With Newsletter

    Footer With Newsletter

    87
  • Segmented Control

    Segmented Control

    70
  • Services List

    Services List

    39
  • Wave Lines

    Wave Lines

    29
  • Expandable Text

    Expandable Text

    16
  • Mask Reveal

    Mask Reveal

    15
  • Expand Button

    Expand Button

    14