gsap-scrolltrigger

Implement scroll-driven animations with GSAP ScrollTrigger for parallax, pinned sections, and scrubbed timelines.

2|Updated May 1, 2026
One-click install
npx skills add https://github.com/nikkogibler/MarsFounderIO --skill gsap-scrolltrigger-nikkogibler
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gsap-scrolltrigger
Source: https://github.com/nikkogibler/MarsFounderIO/tree/main/my-instructions/skills/gsap-scrolltrigger
Command: npx skills add https://github.com/nikkogibler/MarsFounderIO --skill gsap-scrolltrigger-nikkogibler

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Create and control scroll-based animations with ease, including pinned elements and scrub-based progress, without manual scroll tracking.

Core Features & Use Cases

  • Triggers tweens and timelines based on scroll positions with fine-grained start/end control.
  • Pin elements during scroll to create immersive sections and horizontal scrolling experiences.
  • Supports advanced patterns like ScrollTrigger.batch(), scrollerProxy(), markers for development, and containerAnimation for fake horizontal scroll.

Quick Start

Move your first animation to follow the page scroll using ScrollTrigger with a simple trigger and scrub.

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 that map animation progress to user scroll?

Scroll-driven animations map animation progress to user scroll by configuring ScrollTrigger with a trigger element and start/end positions. This binds tweens and timelines directly to scroll input without manual scroll tracking.

What is the best way to pin elements during scroll for immersive sections?

Pinning elements during scroll holds a specific section in place while the user scrolls past it, creating immersive layouts. This is achieved by applying the pin property within the ScrollTrigger configuration.

Can I use GSAP ScrollTrigger for horizontal scrolling with a custom scroller?

GSAP ScrollTrigger supports horizontal scrolling and custom scrollers via containerAnimation for fake horizontal scroll and scrollerProxy for custom scroll integration. These allow mapping scroll progress to non-standard scroll containers.

How does scrub work when applying parallax to web pages?

Scrub links the animation's progress directly to the scroll position, causing the animation to move forwards and backwards as the user scrolls up and down. This creates smooth, controllable parallax effects tied to scroll velocity.

Does ScrollTrigger support batch processing for multiple elements?

ScrollTrigger supports batch processing through ScrollTrigger.batch(), which allows you to trigger animations for multiple elements simultaneously as they enter the viewport. This optimizes performance for groups of similar elements.

When do I need markers for scroll animations?

Markers are needed during development to visually debug scroll animations by displaying start and end trigger points on the screen. They help fine-tune start/end configurations but are typically disabled in production.