Build scroll animations with AI and GSAP
Use ScrollTrigger to play an animation at a page position or link its progress to the reader’s scrolling.
You can build scroll animations with AI and GSAP for a product explanation that unfolds as the reader moves down the page. A bicycle diagram might stay in view while the accompanying text moves from brakes to gears. The gsap-scrolltrigger skill lets a coding agent establish the trigger, the start and end boundaries and what should happen between them.
Playing a tween when an element appears is different from tying its progress to every movement of the scrollbar. The latter can reverse naturally as the reader scrolls back. Layout and screen size affect both approaches, so the guide also covers measurement and cleanup.
What it does
- Trigger a short introduction when a section enters view.
- Pin an illustration for a specified part of the page.
- Scrub through a sequence in proportion to scroll progress.
- Change the interaction on a narrow display.
- Refresh boundaries after late-loading content changes the layout.
Install and use
- Install the official GSAP package in an authorised web project and register ScrollTrigger. Use a coding agent with access to the relevant layout.
- Describe the section, its scroll boundaries and whether the motion should play independently or follow the scrollbar.
- Test both directions on desktop and mobile, including after images finish loading.
FAQ
Source
Made by GreenSock (Webflow). Original skill: gsap-scrolltrigger, published on GitHub under the MIT licence.
View on GitHub