Skip to content
bbeierle12 avatar

Gsap Scrolltrigger

Scroll-driven GSAP animations covering pinning, scrubbing, snap points, parallax, and batch reveals.

CCM score
49 of 100
skills.sh installs
616
GitHub stars
9
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers ScrollTrigger setup, start and end positions, scrub smoothing, pinned sections, and horizontal scrolling
  • Includes toggle action syntax, snap configuration with labels, parallax layering, and batch stagger animations
  • Provides callbacks such as onUpdate for progress-driven updates and markers: true for development debugging
  • Designed for developers building sticky sections, progress indicators, and parallax scrolling pages with GSAP

Install

$ npx -y skills add bbeierle12/skill-mcp-claude --skill gsap-scrolltrigger -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

GSAP ScrollTrigger

Scroll-driven animations and interactions.

Quick Start

npm install gsap
import gsap from 'gsap';
import { ScrollTrigger } from 'gsap/ScrollTrigger';

gsap.registerPlugin(ScrollTrigger);

gsap.to('.box', {
  x: 500,
  scrollTrigger: {
    trigger: '.box',
    start: 'top center',
    end: 'bottom center',
    scrub: true
  }
});

Core Concepts

Basic ScrollTrigger

gsap.to('.element', {
  x: 200,
  scrollTrigger: {
    trigger: '.element',  // Element that triggers the animation
    start: 'top center',  // When trigger hits viewport center
    end: 'bottom center', // When trigger leaves viewport center
    toggleActions: 'play pause resume reset'
  }
});

Start/End Positions

// Format: "trigger-position viewport-position"
start: 'top center'      // Trigger's top hits viewport center
start: 'top 80%'         // Trigger's top hits 80% down viewport
start: 'center center'   // Trigger's center hits viewport center
start: 'bottom top'      // Trigger's bottom hits viewport top
start: 'top top+=100'    // Trigger's top hits 100px below viewport top

Position Reference

Details

Repository
github.com/bbeierle12/skill-mcp-claude
Categories
Animation & Motion, Frontend & UI Code
First seen
Jun 3, 2026

More from bbeierle12/skill-mcp-claude

All 3

Similar to Gsap Scrolltrigger

More Animation & Motion