greensock/GSAP

The standard JavaScript animation library

What

Framework-agnostic animation library for tweens, timelines, scroll-driven effects (ScrollTrigger), SVG, Flip and more. Now free including all plugins.

How to use

javascript
// npm install gsap
import { gsap } from "gsap";
import { ScrollTrigger } from "gsap/ScrollTrigger";
gsap.registerPlugin(ScrollTrigger);

gsap.to(".box", { x: 200, rotation: 360, duration: 1, scrollTrigger: ".box" });

Reach for it when

Any web animation beyond simple CSS transitions, and the base layer for HyperFrames-style videos.