gsap-scrolltrigger

Create scroll-linked animations and pinning with GSAP ScrollTrigger.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the complexity of synchronizing web animations with user scroll position, eliminating the need for manual scroll event listeners and complex coordinate calculations.

Core Features & Use Cases

  • Scroll-Driven Animations: Trigger tweens and timelines based on scroll position, including pinning elements and scrubbing animation progress.
  • Advanced Scroll Control: Manage complex layouts with features like batching triggers, proxying custom scrollers, and handling horizontal scroll containers.
  • Use Case: Create a high-end landing page where sections pin in place while content animates in sequence as the user scrolls down the page.

Quick Start

Use the gsap-scrolltrigger skill to create a scroll-triggered animation that pins a section and scrubs a timeline as the user scrolls through the viewport.

Frequently Asked Questions about gsap-scrolltrigger

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

FAQPage Schema
How do I trigger web animations based on scroll position without manual event listeners?

Scroll-linked animations synchronize web animations with user scroll position, eliminating manual scroll event listeners. Using GSAP ScrollTrigger automates viewport-based trigger calculations, allowing tweens and timelines to progress as the page scrolls.

What is the best way to pin a section and scrub an animation timeline as the user scrolls?

Pinning elements and scrubbing animation timelines are core features of GSAP ScrollTrigger. You can pin a section in place while scrubbing a linked timeline, ensuring animation progress directly matches the scroll position through the viewport.

Can I batch element reveals or use custom scrollers for parallax effects?

Yes, advanced scroll control allows batching triggers for batched element reveals and proxying custom scrollers. This facilitates creating complex parallax effects and handling unique scroll containers within modern web interfaces.

How does GSAP ScrollTrigger handle horizontal scroll containers?

GSAP ScrollTrigger manages horizontal scroll containers through advanced scroll control features. It proxies custom scrollers to calculate viewport-based triggers, synchronizing scroll-driven timelines and animations across horizontal layouts.

Do I need GSAP core libraries to manage scroll-linked animation states?

Yes, integrating GSAP core libraries is required to manage animation states and viewport-based trigger calculations. ScrollTrigger relies on the core GSAP library to function properly and execute scroll-linked animations.

Why use GSAP ScrollTrigger instead of manual coordinate calculations for scroll-driven timelines?

GSAP ScrollTrigger solves the complexity of synchronizing web animations with scroll position, removing manual coordinate calculations. It provides a structured way to handle pinning behaviors, batched reveals, and scrubbing for high-end landing pages.