Code
GSAP
Tweens
gsap.to(), gsap.from(), gsap.fromTo() — the three core tween methods
Timeline
Sequence and overlap tweens with gsap.timeline() and position parameters
Easing
Visual comparison of built-in ease functions: power, elastic, bounce, back
Stagger
Cascade animations across a grid of elements with the stagger option
ScrollTrigger
Animate elements on scroll with the ScrollTrigger plugin and scrub
MotionPath
Move elements along SVG paths with autoRotate using MotionPathPlugin
FLIP
Smooth layout transitions — capture state, mutate DOM, animate with Flip.from()
Generative Art
Algorithmic particle system with orbital motion, hue cycling, and pulse animations
ScrollTrigger
Advanced Animate elements on scroll using the ScrollTrigger plugin. scrub ties animation progress directly to scroll position. Scroll the panel below. GSAP Docs
↓ Scroll this panel
import { ScrollTrigger } from 'gsap/ScrollTrigger';
gsap.registerPlugin(ScrollTrigger);
cards.forEach((card, i) => {
ScrollTrigger.create({
trigger: card,
scroller: scrollPanel, // custom scroller
start: 'top 90%',
end: 'top 30%',
scrub: 0.8, // lag behind scroll
animation: gsap.fromTo(card,
// different 'from' per card
fromVars[i],
// shared 'to'
{
x: 0, scale: 1,
rotation: 0, skewX: 0,
opacity: 1, ease: 'none'
}
),
});
});