gsap-scrolltrigger

Create scroll-linked animations with GSAP ScrollTrigger, including pinning and scrubbing.

Updated May 31, 2026
One-click install
npx skills add https://github.com/fanguyun/SkillManager --skill gsap-scrolltrigger-fanguyun
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gsap-scrolltrigger
Source: https://github.com/fanguyun/SkillManager/tree/main/gsap-scrolltrigger
Command: npx skills add https://github.com/fanguyun/SkillManager --skill gsap-scrolltrigger-fanguyun

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gsap, and includes scripts (resource) components.

What problem does it solve?

This Skill addresses the challenge of creating complex, interactive animations that respond to user scrolling behavior, providing a way to enhance web design with engaging scroll-linked animations.

Core Features & Use Cases

  • ScrollTrigger: Offers precise control over animations triggered by scroll events.
  • Pinning: Allows elements to remain in place while other content scrolls.
  • Scrubbing: Enables smooth animation playback at the user's scrolling speed.
  • Use Case: For web designers looking to create interactive parallax effects or for developers needing to add dynamic animation sequences that react to user scroll behavior.

Quick Start

To register the GSAP ScrollTrigger plugin and use it with a basic trigger, run the following command: gsap.registerPlugin(ScrollTrigger); gsap.to(".box", { x: 500, duration: 1, scrollTrigger: { trigger: ".box", start: "top center", end: "bottom center" } });

Frequently Asked Questions about gsap-scrolltrigger

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create scroll-based animations and parallax effects on my web page?

Scroll-based animations are created by linking element transitions to scroll position using GSAP. This approach enables interactive parallax effects and dynamic animation sequences that react precisely to user scrolling behavior.

What is scrubbing and pinning in scroll-linked web animations?

Scrubbing enables smooth animation playback synchronized with the user's scrolling speed, while pinning keeps elements fixed in place as the rest of the page scrolls, creating engaging scroll-based interactions.

How do I trigger a GSAP animation when an element enters the viewport?

You can trigger a GSAP animation by registering the ScrollTrigger plugin and defining start and end points, such as "top center", to bind the animation timeline directly to the element's scroll position.

Do I need to install GSAP to use scroll-based animation features?

Yes, GSAP must be loaded and registered in your project environment before you can implement scroll-linked animations, pinning, or scrubbing features on your web pages.

What's the best way to build interactive parallax effects for web design?

Using a dedicated animation platform like GSAP offers precise control over scroll events. It provides the necessary mechanisms to pin elements and scrub animations, resulting in smooth parallax effects.

Why does my scroll-triggered animation fail to register in the project?

Scroll-triggered animations fail if the GSAP dependency is not properly loaded or the ScrollTrigger plugin is not registered in your script before defining the animation triggers and scrubbing parameters.