Web Dev Academy Animation & scroll · GSAP Tool 24 / 64
Animation & scroll

GSAP

The GreenSock Animation Platform — a fast, framework-agnostic JavaScript engine that tweens any number, any property, on a precise timeline. Everything below is animated by the real GSAP.

Demo 01

Tweens: to, from & fromTo

A tween animates from one state to another. gsap.to() animates to a value, from() animates in from one, and fromTo() defines both ends.

gsap.to("#box", { x: 300, rotation: 360, duration: 1, ease: "power2.out" });
Demo 02

Easing gallery

Easing shapes the personality of motion. Each lane plays the same distance with a different GSAP ease. Hit replay to compare them side by side.

Demo 03

Timelines: sequencing made simple

A gsap.timeline() chains tweens so they play in order (or overlap). Watch three boxes move as one coordinated sequence.

1
2
3
const tl = gsap.timeline();
tl.to("#a", { x: 300 })
  .to("#b", { x: 300 }, "-=0.4")
  .to("#c", { x: 300 }, "-=0.4");
Demo 04

Stagger across a grid

One tween, many targets. GSAP's stagger offsets each element's start time, rippling animation through a grid from its center.

Demo 05

ScrollTrigger reveal

The real ScrollTrigger plugin ties animations to scroll position. Scroll this inner panel — each card fades and slides in as it enters view.

↓ scroll down inside this box ↓

Bound to scroll

This card was hidden until its position crossed the trigger.

Scrubbed by ScrollTrigger

GSAP watches the scroller and fires the tween at the right moment.

No scroll libraries needed

ScrollTrigger is a first-party GSAP plugin.

Reversible

Scroll back up and they animate out again.

↑ that's the end ↑
Demo 06

SVG stroke drawing

By animating strokeDashoffset, GSAP can "draw" an SVG path stroke from nothing — the classic signature/line-draw effect.

i
Built with the real GSAP 3.13.0 and its ScrollTrigger plugin, loaded from cdn.jsdelivr.net/npm/gsap@3.13.0. Every tween, timeline, stagger, scroll-bound reveal and SVG stroke-draw above is genuine GreenSock — only the page chrome comes from the shared CSS shell.

↑ All 64 tools