gsap-scrolltrigger

Implement scroll-driven animations with GSAP ScrollTrigger in vanilla JS or React.

Updated Mar 18, 2025
One-click install
npx skills add https://github.com/utsavm81098/88-residences --skill gsap-scrolltrigger-utsavm81098
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gsap-scrolltrigger
Source: https://github.com/utsavm81098/88-residences/tree/main/.agents/skills/gsap-scrolltrigger
Command: npx skills add https://github.com/utsavm81098/88-residences --skill gsap-scrolltrigger-utsavm81098

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scroll-driven UI animations can be complex to implement consistently across components and frameworks. This skill provides guidance on using GSAP ScrollTrigger to create scroll-linked animations, including pinning, scrubbing, and triggers.

Core Features & Use Cases

  • Tie tweens to scroll position to create reactive, scroll-driven transitions.
  • Pin sections and orchestrate parallax and reveal effects as the user scrolls.
  • Use ScrollTrigger.batch() for coordinated, batched callbacks across multiple elements and scroll-based group effects.
  • Integrate with React or vanilla JS by registering the plugin with gsap.registerPlugin(ScrollTrigger) and applying scrollTrigger configurations to timelines or tweens.

Quick Start

Register the plugin with gsap.registerPlugin(ScrollTrigger) and apply a scrollTrigger config to a tween to link its progress to the scroll position.

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

To create scroll-based animations with GSAP ScrollTrigger, register the plugin via gsap.registerPlugin(ScrollTrigger) and apply scrollTrigger configurations to your tweens or timelines to link animation progress to scroll position.

Can I use GSAP ScrollTrigger with React?

Yes, you can use GSAP ScrollTrigger with React by registering the plugin with gsap.registerPlugin(ScrollTrigger) and applying scrollTrigger configurations to timelines or tweens within your React components.

What is the best way to pin sections and create parallax effects on scroll?

The best way to pin sections and create parallax effects is to use GSAP ScrollTrigger configurations to pin sections while orchestrating reveal and parallax transitions as the user scrolls through the page.

How does ScrollTrigger.batch work for coordinating group animations?

ScrollTrigger.batch() works by providing coordinated, batched callbacks across multiple elements, allowing you to trigger scroll-based group effects simultaneously rather than individually animating each element.

Why do I need to register the ScrollTrigger plugin before using it?

You need to register the ScrollTrigger plugin via gsap.registerPlugin(ScrollTrigger) because GSAP requires explicit plugin registration to activate ScrollTrigger's core functionality before applying configurations to tweens or timelines.

Does GSAP ScrollTrigger support custom scrollers and proxy configurations?

Yes, GSAP ScrollTrigger supports custom scrollers through the scrollerProxy method, allowing you to integrate scroll-driven animations with custom scrolling environments and ensuring proper scroll-linked behavior.