generate_scroll_animation
Create scroll-triggered animations using GSAP's ScrollTrigger plugin. Define trigger and target elements, set start and end positions, and specify animation properties.
Instructions
生成滚动触发动画,支持ScrollTrigger
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": {
"trigger": "<trigger>",
"target": "<target>",
"properties": "<properties>"
},
"name": "generate_scroll_animation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | 结束位置 | bottom 20% |
| scrub | No | 是否跟随滚动 | |
| start | No | 开始位置 | top 80% |
| target | Yes | 动画目标选择器 | |
| trigger | Yes | 触发元素选择器 | |
| properties | Yes | 动画属性 |