GSAP MotionPath
gsap_motionpathAnimate an element along an SVG path or points array for curved motion. For straight-line positional animation, use the tween tool.
Instructions
Animate an element along an SVG path or array of points using MotionPathPlugin. Use for curved movement paths. For straight-line positional animation use gsap_tween instead.
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": {
"target": "<target>",
"path": "<path>"
},
"name": "gsap_motionpath"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ease | No | none | |
| path | Yes | SVG path selector or points array | |
| target | Yes | CSS selector for the element to animate | |
| options | No | ||
| duration | No | ||
| includeImports | No |