Skip to content

Stagger group

Animates a group of items into view one after another.

Type
Form
Light
stagger-group-basic-demo.tsx

Installation

The CLI adds the files, packages, theme variables, and Tailwind plugin that this component uses. Before you run it, set up your project.

Composition

  • StaggerGroup
    • StaggerItem

List

  1. 01Write the brief
  2. 02Choose the typefaces
  3. 03Send the proofs
stagger-group-demo.tsx

Timing

In a long group the delay gets shorter, so the last item starts within 0.6 seconds.

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20
  21. 21
stagger-group-timing-demo.tsx

API reference

StaggerGroup

as: "div" | "ul" | "ol" = "div"
Use ul or ol with li StaggerItem children for a semantic list.
trigger: "mount" | "in-view" = "in-view"
Start the sequence on mount, or the first time the group comes into view.
stagger: number = 0.08
Delay in seconds between StaggerItem children. A long group uses a shorter delay, so the last item starts within 0.6 seconds.

StaggerItem

as: "div" | "li" = "div"
Element that receives the group animation.