gsap-scrolltrigger

Create scroll-driven animations with GSAP ScrollTrigger configuration.

11|1|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/kartojal/openvps --skill gsap-scrolltrigger-kartojal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gsap-scrolltrigger
Source: https://github.com/kartojal/openvps/tree/main/.agents/skills/gsap-scrolltrigger
Command: npx skills add https://github.com/kartojal/openvps --skill gsap-scrolltrigger-kartojal

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the creation of scroll-driven animations by leveraging GSAP's ScrollTrigger to tie animations to scroll position, pin elements, and implement parallax effects without boilerplate.

Core Features & Use Cases

  • Provides guidance for configuring ScrollTrigger (start, end, scrub, pin), using containerAnimation for fake horizontal scrolling, and markers for development.
  • Covers best practices for React integration, performance considerations, and debugging techniques.
  • Use Case: build a landing page with parallax sections that react to scroll and reveal content as you scroll.

Quick Start

Load GSAP and ScrollTrigger and create a basic scroll-triggered animation to verify setup.

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

To create scroll-driven animations with GSAP ScrollTrigger, you configure parameters like start, end, scrub, and pin to tie animations directly to the scroll position. This removes boilerplate when building scroll-based web interactions.

What is the best way to pin elements and build parallax effects on scroll?

Pinning elements and building parallax effects on scroll is best handled by configuring ScrollTrigger's pin and scrub properties. This approach locks sections during scrolling and synchronizes animation progress with scroll position.

Can I use GSAP ScrollTrigger animations within a React application?

Yes, you can use GSAP ScrollTrigger animations within a React application. The setup includes specific best practices for React integration, ensuring animations trigger correctly during component lifecycle and scroll events.

Does ScrollTrigger support horizontal scroll animations using containerAnimation?

ScrollTrigger supports horizontal scroll animations through the containerAnimation property. This feature allows you to implement fake horizontal scrolling by tying vertical scroll progress to horizontal animation timelines.

How do I debug ScrollTrigger start and end positions during development?

You debug ScrollTrigger start and end positions during development by enabling the markers property. This visualizes the trigger points directly on the page, aiding in configuration and performance debugging.

Why use GSAP ScrollTrigger for scroll-based web interface animations?

You use GSAP ScrollTrigger for scroll-based web interface animations because it streamlines complex scroll-driven interactions without boilerplate. It provides comprehensive configuration options for parallax effects and pinned sections, ensuring robust performance.