gsap-scrolltrigger

Implement and troubleshoot GSAP ScrollTrigger animations in web UIs.

1|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/0monish/portfolio-vivek-kamani --skill gsap-scrolltrigger-0monish
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gsap-scrolltrigger
Source: https://github.com/0monish/portfolio-vivek-kamani/tree/main/.agents/skills/gsap-scrolltrigger
Command: npx skills add https://github.com/0monish/portfolio-vivek-kamani --skill gsap-scrolltrigger-0monish

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers need reliable, scalable guidance to implement and troubleshoot GSAP ScrollTrigger animations across complex web layouts.

Core Features & Use Cases

  • Plugin setup & registration: Demonstrates how to register GSAP plugins and initialize ScrollTrigger for new projects.
  • Start/end mechanics & scrub: Explains how to configure start/end values and scrub to link progress with scroll.
  • Pinning, markers & batching: Covers pin behavior, development markers, and batch handling for multiple triggers.

Quick Start

Create a basic ScrollTrigger that pins a section and scrubs a child animation to demonstrate the effect.

Frequently Asked Questions about gsap-scrolltrigger

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

FAQPage Schema
How do I set up GSAP ScrollTrigger to pin a section and scrub an animation?▼

To set up GSAP ScrollTrigger, register the plugin, define start/end positions, enable pinning for the section, and link animation progress to scroll using the scrub property.

Why does my GSAP ScrollTrigger pinning layout break or overlap?▼

GSAP ScrollTrigger pinning breaks when start/end values are misconfigured or plugin registration is missing. Debug layout overlaps by enabling development markers to visualize trigger points.

How does the scrub property work in GSAP scroll-driven animations?▼

The scrub property in GSAP scroll-driven animations links animation playback directly to scroll position, allowing effects to move forward and backward as the user scrolls up and down.

Can I use GSAP ScrollTrigger for parallax effects in multi-section single-page applications?▼

Yes, GSAP ScrollTrigger supports building and debugging parallax effects in both single-page and multi-section layouts by configuring scroll-driven interactions and containerAnimation for horizontal movement.

What is the best way to handle clean teardown for ScrollTrigger animations in modern web UIs?▼

The best way to handle clean teardown for ScrollTrigger animations is to properly manage plugin registration and kill active triggers during navigation transitions to prevent memory leaks.