gsap-scrolltrigger

Create scroll-linked animations and parallax effects with GSAP ScrollTrigger.

13.3k|785|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/greensock/gsap-skills --skill gsap-scrolltrigger-greensock
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gsap-scrolltrigger
Source: https://github.com/greensock/gsap-skills/tree/main/skills/gsap-scrolltrigger
Command: npx skills add https://github.com/greensock/gsap-skills --skill gsap-scrolltrigger-greensock

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill simplifies the implementation of scroll-linked animations, parallax effects, and pinned sections in web design, enabling smooth and engaging user experiences.

Core Features & Use Cases

  • ScrollTrigger API: Leverage the GSAP ScrollTrigger API for scroll-based animations and pinning elements.
  • Pinning and Scrubbing: Create fixed elements and animated sequences that follow scroll position.
  • Use Case: Enhance a webpage with scroll-triggered animations and effects to create a dynamic and interactive experience for the user.

Quick Start

To create a basic scroll-triggered animation, use the following command: gsap.to(".element", { duration: 1, scrollTrigger: { trigger: ".element", 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-linked animations on a webpage?

You can create scroll-linked animations by binding GSAP transitions to scrollbar input. This Skill leverages the ScrollTrigger API to trigger animations and transitions based on scroll position.

What is a parallax effect and how does scrubbing work?

A parallax effect creates depth by moving background and foreground elements at different speeds during scrolling. Scrubbing links animation progress directly to scroll position, allowing animated sequences to follow the user's scrolling input smoothly.

Do I need GSAP installed to use ScrollTrigger for pinned sections?

Yes, you need GSAP installed. This Skill requires both the GSAP core library and the ScrollTrigger plugin to be loaded and registered in your web project before you can implement pinning and scroll-linked animations.

Can I pin elements and animate them based on scroll position?

Yes, you can pin elements to create fixed sections during scrolling. The Skill uses GSAP ScrollTrigger to handle user interaction with scrollable content, pinning elements and scrubbing animated sequences based on the current scroll position.

What's the best way to start building scroll-triggered animations?

The best way to start is using the GSAP ScrollTrigger API with a simple command targeting an element. You can define start and end points like "top center" to synchronize animations with scroll progress.

Why are my scroll-linked animations not working?

Scroll-linked animations fail if GSAP and ScrollTrigger are not properly loaded and registered. Ensure the GSAP dependency is installed and the ScrollTrigger plugin is registered before defining scrollTrigger properties in your animation logic.