Primitives
Stagger Children
Wrapper that offsets delayInFrames per child for staggered entrances.
Primitiveatoms
Install
npx remotion-ui@latest add stagger-childrenClones each child and adds a cumulative delayInFrames based on index. Works with any primitive that accepts delayInFrames.
Live preview
Installs `motion-wrapper` automatically. Each child should use an enter primitive.
AI usage
Install first, then import the copied source component locally.
Install
npx remotion-ui@latest add stagger-childrenImport after install
@/remotion/primitives/stagger-children- Use when: frame-level motion primitives and reusable animation wrappers.
- Customize: staggerInFrames, baseDelayInFrames, plus copied source for timing, layout, colors, and typography.
- Rule: do not import this component from the
remotion-uinpm package; it is copied into your project.
Usage
import { StaggerChildren } from "@/remotion/primitives/stagger-children";
import { SlideLeft } from "@/remotion/primitives/slide-left";
<StaggerChildren staggerInFrames={8}>
{items.map((item) => (
<SlideLeft key={item}><span>{item}</span></SlideLeft>
))}
</StaggerChildren>API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| children* | ReactNode | — | Child elements to stagger in sequence. |
| staggerInFrames | number | 6 | Delay between each child in frames. |
| baseDelayInFrames | number | 0 | Initial delay before the first child animates. |