GSAP ScrollTrigger is the official GreenSock skill for scroll-driven animation. It covers registering the plugin, basic triggers, config options, scrub, pinning, ScrollTrigger.batch, scrollerProxy, markers, timelines driven by scroll, horizontal scroll with containerAnimation, and refresh and cleanup.
It ends with GreenSock best practices and a Do Not list.
What You Get
- Registration and basic trigger examples
- Sections on scrub, pinning, batch and scrollerProxy
- Refresh and cleanup rules with a Do Not list
Common Use Cases
- Building parallax and reveal effects
- Pinning a section while it animates
- Creating horizontal scrolling sections
What Makes It Unique
It is written by the maintainers and goes past basic triggers to the cases that cause trouble, such as refresh timing, cleanup and scrolling inside a custom container.
Under The Hood
The skill is a single SKILL.md with no scripts. It guides the assistant to write scroll animation code in your project. It runs no commands and reaches no network.