greensock/gsap-scrolltrigger
ScrollTrigger for scroll-linked animations, pinning, scrub, and refresh handling
Open source
Description
gsap-scrolltrigger is an agent skill from the GSAP project for ScrollTrigger, the GSAP plugin that links animations to scroll position. It covers triggering tweens and timelines on scroll, pinning elements in place, scrubbing animation progress to scroll distance, and batching scroll-based callbacks across many elements. The page says ScrollTrigger handles pin spacing, scroll position math, refresh on resize and cleanup automatically, which removes the manual IntersectionObserver and scroll event bookkeeping that custom code needs. Example jobs from the page are pinning a hero section while inner content animates on scroll, scrubbing a timeline so progress tracks exact scroll distance, triggering staggered card reveals as they enter the viewport, building a fake horizontal scroll section driven by vertical scrolling, and syncing GSAP with third-party smooth-scroll libraries through scrollerProxy. It suits developers building scroll-driven pages with GSAP. Install it with npx skills add https://github.com/greensock/gsap-skills --skill gsap-scrolltrigger. It is published in the greensock gsap-skills repository on GitHub, and the page lists the skill as community.…
Highlights
- Trigger tweens and timelines on scroll
- Pinning elements in place
- Scrub animation to scroll distance
- Batched callbacks for many elements
- Works with smooth-scroll libraries via scrollerProxy
Ratings & Reviews
No ratings yet
Be the first to rate greensock/gsap-scrolltrigger.
People also visit

gsap-framer-scroll-animation
Build scroll animations, scroll effects, parallax, scroll-triggered reveals
greensock/gsap-scrolltrigger FAQ
What is ScrollTrigger?
A GSAP plugin that links animations to scroll position, handling triggers, pinning and scrubbing.
How do I install it?
Run npx skills add https://github.com/greensock/gsap-skills --skill gsap-scrolltrigger.
Does it handle resizing?
The page says ScrollTrigger refreshes on resize and handles pin spacing and cleanup automatically.
Can it work with smooth scrolling?
Yes. The page says it can sync with third-party smooth-scroll libraries through scrollerProxy.
Who publishes it?
The GSAP project, in its gsap-skills repository on GitHub. The page lists the skill as community.
What are the best greensock/gsap-scrolltrigger alternatives?
Popular alternatives to greensock/gsap-scrolltrigger include gsap-scrolltrigger, gsap-scrolltrigger and gsap-framer-scroll-animation. See all greensock/gsap-scrolltrigger alternatives







