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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | standalone | |
| trigger | Yes | ||
| animation | Yes | ||
| batchOptions | No | ||
| includeImports | No |