stagger_layers
Offset layer start times in staggered waves from a chosen origin so grids cascade in rings. Set the per-step interval, ease, and seed for controlled, repeatable spreads.
Instructions
Start several elements one after another, the way Anime.js stagger() does: each layer's first motion preset starts at at plus each seconds per step of distance from where the wave starts (from: first, last, center, edges, random, a layer index, or [x, y] as fractions of the group's box). Distance is measured on the frame, so a grid of cards waves out in rings from the centre; ease (a named curve, "in(2)", "out(3)") bends the spread, seed fixes random. Returns each layer's new start (whole frames). Layers the wave starts together (mirrored cards) get allow.together, so motion/stagger knows it is meant.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"composition": "<composition>",
"layers": "<layers>",
"each": "<each>"
},
"name": "stagger_layers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | Seconds from the start of the composition the first element is in that the wave starts (default: the earliest start now) | |
| each | Yes | Seconds per step | |
| ease | No | A named curve that bends the spread | |
| from | No | ||
| seed | No | ||
| basis | No | What you read and followed to make this change, as refs from search or lookup: rule:<lint or taste rule>, taste, feedback:<id> (earlier feedback this follows; what it answers goes in feedback), commit:<id> (an earlier change it builds on), asset:, template:, skill:… The person sees them under the change, so they know why it is this way. Name only what shaped it. | |
| layers | Yes | Element ids, in order (first and last follow it) | |
| message | No | One line saying why, kept with the change in the history | |
| feedback | No | Ids of the feedback this change answers (notes and marks from list_notes, list_examples or the conversation). When the person keeps the change it joins the record of that feedback, and when they then mark the feedback resolved it is the fix; when they take it back, the feedback opens again. | |
| confidence | No | How sure you are this change is what the person wants. high: they asked for exactly this, or you measured it against a reference. medium: you inferred it from the taste, a rule or earlier feedback. low: you are guessing, or it changes something they did not ask about. The person's threshold decides which changes stand by themselves and which wait for them to keep; say it honestly on every change. | |
| composition | Yes | Composition name (file in compositions/ without .json) |