gsap-scrolltrigger

Coordinate scroll-based animations, pinning, and scrubbing with GSAP ScrollTrigger.

Updated Apr 13, 2026
One-click install
npx skills add https://github.com/DanielV-94/rg-medium --skill gsap-scrolltrigger-danielv-94
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gsap-scrolltrigger
Source: https://github.com/DanielV-94/rg-medium/tree/main/.agents/skills/gsap-scrolltrigger
Command: npx skills add https://github.com/DanielV-94/rg-medium --skill gsap-scrolltrigger-danielv-94

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

GSAP ScrollTrigger enables reliable, scroll-driven animations, pinning, and parallax effects, reducing manual timing work and cross-browser inconsistencies for modern UIs.

Core Features & Use Cases

  • Scroll-triggered tweens and timelines: tie animations directly to the page scroll with scrub and precise start/end controls.
  • Pinning and parallax: keep sections in view while other content moves, enabling dynamic storytelling and guided UX.
  • Guided usage & best practices: includes safe patterns for containerAnimation, marker usage, and from-scroll to on-demand UI changes.

Quick Start

Apply ScrollTrigger to a target element and configure start, end, and scrub to link progress to the page scroll.

Frequently Asked Questions about gsap-scrolltrigger

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

FAQPage Schema
How do I build scroll-driven animations and parallax effects for a web layout?

Scroll-driven animations and parallax effects are built by coordinating scroll-based tweens, pinning, and scrubbing using GSAP ScrollTrigger. This approach ties animations directly to page scroll progress, reducing manual timing work and cross-browser inconsistencies for modern UIs.

What is the best way to pin sections in view while other content moves during scroll?

Pinning sections while other content moves is handled using GSAP ScrollTrigger's pinning feature. It keeps targeted sections fixed in view during a defined scroll range, enabling dynamic storytelling and guided user experiences across single-page or multi-section layouts.

How do I link animation progress directly to page scroll using scrub?

Linking animation progress to page scroll is achieved by applying GSAP ScrollTrigger to a target element and configuring the scrub, start, and end options. This setup ensures the animation timeline plays forward and backward precisely as the user scrolls.

Do I need to register the GSAP ScrollTrigger plugin before using it?

Registering the GSAP ScrollTrigger plugin is required before using it to enforce correct usage and prevent errors. Safe patterns also include using none for horizontal containerAnimation and enabling markers only during development to debug start and end points.

Why does my GSAP ScrollTrigger containerAnimation configuration cause conflicts?

GSAP ScrollTrigger containerAnimation conflicts occur when incorrect options are applied. To enforce correct usage and resolve conflicts, use none for horizontal containerAnimation and ensure the plugin is properly registered before implementing scroll-based animations.