Stagger
A one-time entrance sequence for a small group of related content.
Stagger reveals direct children in document order so a list or grid establishes hierarchy without appearing as one mechanical block. It uses the shared motion tokens and becomes an immediate reveal when the user prefers reduced motion.
Overview
Analytics
Reports
Members
Billing
Settings
Import
Section titled “Import”import { Stagger } from "@zentara-co/zenos-ui";Viewport entrance
Section titled “Viewport entrance”Use inView for a group that begins below the fold. The sequence plays once, disconnects its observer, and does not replay as the user scrolls away and back. Add blur only when the focus pull supports the content rather than decorating it.
Overview
Reveals once when it enters the viewport.
Analytics
Reveals once when it enters the viewport.
Reports
Reveals once when it enters the viewport.
Composition
Section titled “Composition”Stagger does not own grid or stack layout. Add layout through className, and give every direct child a stable key when rendering a collection. Direct children must be elements or components that forward style and data-* attributes to their root element; text nodes and fragments remain visible but are not animated.
Use step to change the delay between children and initialDelay to coordinate the group with an immediately preceding element. Keep the total cascade short: a long list should animate a representative first group or skip staggering entirely.
API
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | — | Direct element children animated in document order. Each child must forward style and data attributes. |
step | number | 70 | Delay in milliseconds between consecutive direct children. |
initialDelay | number | 0 | Delay in milliseconds before the first child enters. |
blur | boolean | false | Adds a 4px-to-0 focus pull to the entrance. |
inView | boolean | false | Waits until the root first intersects the viewport before playing. |
native props | React.HTMLAttributes<HTMLDivElement> | — | Forwards native attributes, events, aria-*, data-*, className, style, and ref. |
Unless narrowed above, each DOM-rendering part also accepts its underlying native or Base UI props,
including className, style, aria-*, and data-*.
Accessibility
Section titled “Accessibility”The sequence does not alter DOM order, focus order, names, or roles. Under prefers-reduced-motion: reduce, children render in their final state without translation, blur, delay, or animation. Do not place essential status changes behind a staggered entrance.