gsap-scrolltrigger

Create scroll-driven animations, pins, and scrubbing with GSAP ScrollTrigger.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/Bharathadi01/export-work --skill gsap-scrolltrigger-bharathadi01
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gsap-scrolltrigger
Source: https://github.com/Bharathadi01/export-work/tree/main/.agents/skills/gsap-scrolltrigger
Command: npx skills add https://github.com/Bharathadi01/export-work --skill gsap-scrolltrigger-bharathadi01

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

GSAP ScrollTrigger makes it easy to build scroll-based animations, pin elements, and scrub timelines without manual scroll math, improving UX with smooth, performant effects.

Core Features & Use Cases

  • Trigger tweens and timelines based on scroll position
  • Pin elements for sticky sections or parallax effects
  • Scrub animations so progress follows scroll
  • Easy integration with vanilla JS or React, with optional markers

Quick Start

Install GSAP, register the ScrollTrigger plugin, and attach a scrollTrigger to your timeline to begin scroll-based animation.

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-driven animations with GSAP ScrollTrigger?

To create scroll-driven animations with GSAP ScrollTrigger, install GSAP, register the ScrollTrigger plugin, and attach a scrollTrigger configuration object to your tween or timeline to define the trigger, start, and end points.

What is the best way to pin elements for sticky sections using GSAP?

The best way to pin elements for sticky sections using GSAP is to use the ScrollTrigger plugin's pinning feature, which attaches elements to the viewport during a defined scroll range without requiring manual scroll position math.

How does scrubbing animations work with scroll position in GSAP?

Scrubbing animations in GSAP ties animation progress directly to scroll position, allowing the timeline to play forward and backward as the user scrolls up and down the page for smooth, performant parallax effects.

How do I debug start and end points for scroll animations using markers?

You can debug start and end points for scroll animations by enabling the optional markers property in your ScrollTrigger configuration, which visually overlays indicators on the page to help fine-tune trigger positions.

Can I use GSAP ScrollTrigger with React for web animations?

GSAP ScrollTrigger works with React by registering the plugin and attaching the scrollTrigger configuration to timelines within component effects, enabling scroll-based effects and pinned sections across desktop and mobile environments.