generate_motion_snippet
Generate ready-to-paste motion snippets by animation category and design style, with engine choice, CDN link, usage hints, and reduced-motion guards.
Instructions
Generate a ready-to-paste anime.js v3 animation snippet for a given motion category and design style. Returns CDN link, code snippet, usage hint, and reduced-motion note. Categories: entrance, micro, stagger, scroll, loader, transition, counter, typewriter. All snippets include prefers-reduced-motion guards.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"category": "<category>",
"style": "<style>"
},
"name": "generate_motion_snippet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | Yes | Design system (e.g. glass, neo-brutalism, claymorphism, material, minimal, etc.). Adjusts easing and duration to match the system's motion character. | |
| engine | No | Animation engine to use. Defaults to motion.dev. | |
| category | Yes | Animation category: entrance=page load, micro=button/chip interactions, stagger=list/grid reveal, scroll=IntersectionObserver-triggered, loader=spinner, transition=page transitions, counter=number counters, typewriter=text reveal | |
| framework | No | Target framework (used by motion.dev engine). Defaults to react. |