glaxnimate_animate_svg
Animate SVG files using standards-based SMIL keyframes for motion, rotation, scaling, opacity, paths, and stroke effects. Returns both animated and static reduced-motion versions.
Instructions
Add standards-based SMIL keyframes to a custom SVG.
Each animation needs target_id, property, and values. Property is translate, rotate, scale, opacity, path, or stroke-dashoffset. Use values such as ["0 0", "120 0"] for translate, ["0", "1"] for opacity, or compatible SVG path data for path. duration_ms, begin_ms, repeat_count, and key_times are optional.
The response contains animated_svg for the normal experience and the unchanged reduced_motion_svg for consumers that honor prefers-reduced-motion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| svg | Yes | ||
| animations | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||