GSAP ScrollTrigger
gsap_scrolltriggerBind animations to scroll position for scrub, pin, or trigger-on-scroll effects. Define start and end points to control element motion as the user scrolls.
Instructions
Animate elements based on scroll position using ScrollTrigger. Use for scroll-driven animations (scrub), pin sections, or trigger-on-scroll effects. For scroll-independent animations use gsap_tween or gsap_timeline 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": {
"animation": "<animation>",
"trigger": "<trigger>"
},
"name": "gsap_scrolltrigger"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | standalone | |
| trigger | Yes | ||
| animation | Yes | ||
| batchOptions | No | ||
| includeImports | No |