Animated section content

Animated Sections

Sections that animate in with staggered entrance transitions.

Wrap child elements to stagger their entrance with fade and slide animations.

Demo

Staggered grid entrance

1
2
3
4
5
6
7
8
9

Usage

import { AnimatedSections } from "@delphi/ui";

export function Example() {
  return (
    <AnimatedSections className="grid grid-cols-3 gap-4">
      {items.map((item) => (
        <Card key={item.id}>{item.name}</Card>
      ))}
    </AnimatedSections>
  );
}

API Reference

PropTypeDefaultDescription
staggerDelaynumber0.1Delay in seconds between each child's entrance
itemDurationnumber0.2Duration of each child's entrance animation
itemClassNamestring-Class applied to each animated item wrapper
classNamestring-Additional CSS classes for the container
Use for lists and grids that load content
Keep stagger delays short (0.05–0.15s) so the sequence feels snappy
Use with very large lists — stagger delay compounds and gets slow
Wrap items that are already animated individually
ESC
No results found