Skip to main content
Sequencing functions help you organize and coordinate multiple animations across your composition’s timeline. These utilities make it easy to create complex choreography without manual frame calculations.

sequence()

Calculates the local time and progress of a sequence relative to a start frame.

Parameters

SequenceOptions
required
Sequence configuration object

Returns

SequenceResult object with the following properties:
number
Frame number relative to the sequence start (frame - from)
number
Alias for localFrame, for clarity
number
Normalized progress from 0 to 1. Always 0 if no duration specified.
boolean
True if the current frame is within the sequence’s time range

Examples

Basic sequence

Using local frame

Infinite sequence

series()

Arranges items sequentially, automatically calculating start times based on each item’s duration.

Parameters

T[]
required
Array of items with durationInFrames and optional offset properties
number
default:"0"
Starting frame for the first item in the series

Returns

Array<T & { from: number }> - Original items with from property added

Examples

Sequential scenes

With offsets

Custom start frame

stagger()

Staggers items at a fixed interval, useful for animating lists and grids.

Parameters

T[]
required
Array of items to stagger
number
required
Number of frames between each item’s start time
number
default:"0"
Frame to start the first item at

Returns

Array<T & { from: number }> - Items with from property added

Examples

Staggered list animation

Grid stagger

shift()

Shifts the start times of all items by a fixed offset.

Parameters

T[]
required
Array of items with a from property
number
required
Number of frames to shift by (can be negative)

Returns

T[] - Items with updated from values

Examples

Delaying a sequence

Creating variations

Common patterns

Chapter-based composition

Overlapping transitions

Multi-track timeline

Combining with animation helpers