anvil · documentation · gallery · llms.txt
Reference

make-spec CLI

Generates a LottieSpec JSON file from a preset.

node scripts/make-spec.mjs <preset> [options]

Presets

spinner
Rotating trim-path arc. One rotation per second.
pulse
Expanding fading ring behind a solid core dot.
checkmark
Self-drawing tick via trim-path reveal.

Options

--color <hex>
Primary colour. Preset-specific default.
--id <name>
Spec id. Defaults to the preset name.
--title <text>
Spec title.
--description <text>
Spec description.
--sw <n>
Stroke width (spinner, checkmark).
--out <path>
Output file. Defaults to specs/<id>.json.

Example

node scripts/make-spec.mjs checkmark --color "#22c55e" --id done --out specs/done.json