GSAP DrawSVG
gsap_drawsvgAnimate SVG stroke drawing progress for line-drawing and reveal effects on SVG paths.
Instructions
Animate SVG stroke drawing progress using DrawSVGPlugin. Use for line-drawing and reveal effects on SVG paths. For morphing between shapes use gsap_morphsvg 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>"
},
"name": "gsap_drawsvg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End position | 100% |
| from | No | Start position (e.g. "0%", "50% 50%") | 0% |
| target | Yes | CSS selector for SVG path(s) | |
| options | No | ||
| duration | No | ||
| useTimeline | No | ||
| includeImports | No |