Stagger Kit
Distribute a value across targets and see the result while you edit.
Pick the stagger type on a row of a call with several targets, or click the preview of a stagger() value, to open the stagger editor.

animate('.card', {
id: 'Cards rise',
y: { from: 40, to: 0 },
delay: stagger(60, { ease: 'inOut(3)' }),
});
Fields
| Field | Edits |
|---|---|
| type | A single number value, or a range between two values |
| value, or min / max | The value, or the two ends of the range |
| reversed | Reverses the order |
| grid | Distributes the values by the positions of the targets with auto, or along one axis with x axis, y axis or z axis. A [columns, rows] grid from your code is kept |
| from | The target the distribution starts from: first, center, last, random or an index |
| use | Orders the targets by a numeric attribute, such as data-index |
| start | The starting value of the stagger |
| ease | Distributes the values along an ease |
| jitter | Adds a random amount to each value |
| seed | Makes random orders and jitter repeat the same way |
A stagger can also spread the start of timeline children. See Time positions.
In the free version, a stagger() value from your code still plays and saves, but its fields need Editor Kit.