RemotionUI
Primitives

Stagger Children

Wrapper that offsets delayInFrames per child for staggered entrances.

Primitiveatoms

Install
npx remotion-ui@latest add stagger-children

Clones 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.

AI guide

Install

npx remotion-ui@latest add stagger-children

Import 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-ui npm 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

PropTypeDescription
children*ReactNodeChild elements to stagger in sequence.
staggerInFramesnumberDelay between each child in frames.
baseDelayInFramesnumberInitial delay before the first child animates.

Related