Animation presets
File: animations/presets.json (+ presets_<locale>.json).
Named presets are dictionaries of animate fields. Reference with "preset": "nudge" on an animate command.
{
"nudge": {
"property": "position_y",
"to": -8,
"duration": 0.12,
"relative": true,
"loop": "ping_pong",
"count": 2
},
"pulse_soft": {
"property": "scale",
"from": 1.0,
"to": 1.05,
"duration": 0.5,
"ease": "in_out",
"loop": "ping_pong"
}
}
Usually you need
| Key on preset | Effect |
|---|---|
property | What to tween |
to / from | Ends |
duration | Seconds |
Allowed fields
Same as animate (minus requiring type / target on the preset itself — target stays on the command): property, from, to, duration, ease, trans, loop, count, relative, keyframes, frames, fps, optional sequence[], preset knobs (intensity, …).
Built-in names (shake, pulse, flash, bob) work without this file. Animations.