Compile a MotionSpec to GSAP/CSS
motion_compileValidates and compiles MotionSpecs into production-ready GSAP JavaScript and CSS, with enforced reduced-motion fallbacks and performance budget reports.
Instructions
Validates (fail-closed) and deterministically compiles a MotionSpec into production-ready vanilla-GSAP JavaScript and CSS, with enforced prefers-reduced-motion fallbacks and a performance-budget report. Same spec always yields identical code. Returns {ok, js, css, report} or {ok:false, errors}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | The MotionSpec JSON object | |
| specName | No | Optional name used in the artifact header |