gsap-scrolltrigger

Create scroll-linked animations and pinning with GSAP ScrollTrigger.

26|4|Updated Jul 21, 2026
One-click install
npx skills add https://github.com/skyf0xx/hedgehog --skill gsap-scrolltrigger-skyf0xx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gsap-scrolltrigger
Source: https://github.com/skyf0xx/hedgehog/tree/main/skills/GSAP/gsap-scrolltrigger
Command: npx skills add https://github.com/skyf0xx/hedgehog --skill gsap-scrolltrigger-skyf0xx

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 Animation: Easily trigger tweens or timelines based on scroll progress, including pinning elements and scrubbing animations.
  • Advanced Orchestration: Use batching for efficient viewport-based triggers and scroller proxies for integration with custom smooth-scrolling libraries.
  • Use Case: Create a high-end landing page where sections pin in place while content fades in and out as the user scrolls down the page.

Quick Start

Use the gsap-scrolltrigger skill to create a scroll-triggered animation that pins the hero section and scrubs its opacity as the user scrolls down.

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-linked animations without writing manual scroll event listeners?

Scroll-linked animations are created by using the GSAP ScrollTrigger plugin to synchronize tweens with scroll position. This eliminates manual scroll event listeners and complex coordinate calculations by handling viewport-based triggers automatically.

What is the best way to pin a hero section and scrub its opacity as the user scrolls?

The best way to pin a hero section is using ScrollTrigger's pinning and scrubbing behaviors. You attach a tween to the scroll progress so the hero stays fixed while its opacity animates directly in response to the user's scroll position.

Does GSAP ScrollTrigger work with custom smooth-scrolling libraries?

GSAP ScrollTrigger works with custom smooth-scrolling libraries by utilizing scroller proxies. This integration method ensures performant scroll-based interactions remain synchronized even when bypassing the browser's native scroll behavior.

Can I batch viewport-based triggers for more efficient parallax effects?

You can batch viewport-based triggers using ScrollTrigger's advanced orchestration features. Batching groups multiple parallax animations to fire efficiently upon entering the viewport, preventing layout thrashing and optimizing page performance.

Why do I need to register the ScrollTrigger plugin before creating scroll-driven timelines?

You need to register the ScrollTrigger plugin to ensure performant scroll-based interactions and proper integration with GSAP core. Registration is a required prerequisite that initializes the scroll-linked animation behaviors before execution.

When do I need viewport-based element triggers for web development animations?

Viewport-based element triggers are needed when creating high-end landing pages where sections pin in place and content fades in and out. They allow scroll-driven timelines to execute precisely when elements enter the user's screen.