Skip to content

Comprehensive GSAP and ScrollTrigger guide for tweens, timelines, scroll-linked animation, and pinning.

CCM score
50 of 100
skills.sh installs
3.3K
GitHub stars
1.5K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers tweens, timelines, position parameters, and ScrollTrigger start/end syntax, scrubbing, toggle actions, and snapping
  • Includes patterns for fade-ins, pinning, horizontal scroll sections, parallax, staggering, and batch animations
  • Shows integration with Three.js and WebGL, including animating camera positions, mesh rotation, and material properties
  • Designed for developers building scroll-driven experiences or sequencing complex web animations

Install

$ npx -y skills add freshtechbro/claudedesignskills --skill gsap-scrolltrigger -y

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

Files

GSAP & ScrollTrigger Development

Overview

GSAP (GreenSock Animation Platform) is the industry-leading JavaScript animation library for creating high-performance, production-quality animations. ScrollTrigger is GSAP's powerful plugin for scroll-driven animations. Together, they enable everything from simple UI transitions to complex scroll-based storytelling experiences.

Core Concepts

The Basics: Tweens

A tween is a single animation from point A to point B.

// Animate TO a state (from current)
gsap.to(".box", {
  x: 200,
  rotation: 360,
  duration: 1,
  ease: "power2.inOut"
});

// Animate FROM a state (to current)
gsap.from(".box", {
  opacity: 0,
  y: -50,
  duration: 0.8
});

// Animate FROM-TO (define both start and end)
gsap.fromTo(".box",
  { opacity: 0, scale: 0.5 }, // FROM
  { opacity: 1, scale: 1, duration: 1 } // TO
);

Timelines: Sequencing Animations

Timelines orchestrate multiple tweens in sequence or overlap.

const tl = gsap.timeline();

// Sequential by default
tl.to(".box1", { x: 100, duration: 1 })
  .to(".box2", { y: 100, duration: 1 })
  .to(".box3", { rotation: 360, duration: 1 });

Details

Repository
github.com/freshtechbro/claudedesignskills
Categories
Animation & Motion, Frontend & UI Code
First seen
May 16, 2026

More from freshtechbro/claudedesignskills

All 22

Similar to Gsap Scrolltrigger

More Animation & Motion