animations/presets.json — file map
Named animation presets. Reference with "preset": "nudge" on an animate command. Built-ins (shake, pulse, …) work without this file. Locale overlay: presets_<locale>.json.
The whole file
Keys with { … } open below. Linked names jump to that section. Grey notes say what each key does. Under each section, Keys lists type, If omitted, allowed values, and a short note.
{
"nudge": { … }, // example preset id — any name you choose
"…": { … } // more preset ids — same fields as animate
}
nudge
Example preset id — any name you choose.
{
"nudge": { // example preset id — any name you choose
"property": "position_y", // what to tween
"from": 1.0, // start
"to": -8, // end
"duration": 0.12, // length
"ease": "in_out", // ease
"trans": "sine", // transition curve
"loop": "ping_pong", // repeat
"count": 2, // repeat count
"relative": true, // relative to
"keyframes": [], // keyframe list
"frames": [], // frame list
"fps": 12, // frame rate
"intensity": 1.0, // shake strength
"distance": 8, // travel distance
"start_frame": 0, // first frame
"color": "#ffffff", // tint end
"opacity": 1.0, // alpha end
"scale_from": 1.0, // scale start
"scale_to": 1.05, // scale end
"decay": true // shake decay
}
}
Keys
property stringIf omitted required for tween
e.g.
position_x, position_y, scale, opacity, modulate.from numberIf omitted current value
Start value (or current if omitted).
to numberIf omitted required for tween
End value.
duration numberIf omitted 0
Values seconds
Seconds.
ease enumIf omitted out
Values
in · out · in_out · out_inEase curve.
trans enumIf omitted cubic
Values
linear · sine · cubic · quad · quint · expo · elastic · back · bounceTween transition.
loop enumIf omitted false
Values
true · false · ping_pongtrue, false, or ping_pong.count numberIf omitted forever if loop
How many loops (
0 = forever when looping).relative boolIf omitted
falseTreat
to / from as deltas.keyframes arrayIf omitted none
For keyframe mode.
frames arrayIf omitted none
For frames mode.
fps numberIf omitted mode default
For frames mode.
intensity numberIf omitted preset default
Built-in / preset knobs.
distance numberIf omitted preset default
For some presets.
start_frame numberIf omitted 0
Start index for frames mode.
color colorIf omitted unchanged
For modulate / color tweens.
opacity numberIf omitted unchanged
For opacity tweens.
scale_from numberIf omitted from
Alternate scale start knob.
scale_to numberIf omitted to
Alternate scale end knob.
decay boolIf omitted false
Whether shake intensity falls off.
Learn more: nudge