GSAP
GSAP
ELI5 — The Vibe Check
GSAP (GreenSock Animation Platform) is the animation library that professional agencies use for those jaw-dropping website animations. While CSS handles simple stuff, GSAP orchestrates complex timelines, scroll-triggered sequences, and physics-based motion. It's the After Effects of the web.
Real Talk
GSAP is a high-performance JavaScript animation library that handles complex animation sequences, timelines, scroll-triggered animations, and morphing. It provides consistent cross-browser behavior, works with any JavaScript framework, and includes plugins for scroll-based animations (ScrollTrigger), SVG morphing, and physics-based motion.
Show Me The Code
import gsap from 'gsap';
gsap.timeline()
.to('.hero', { opacity: 1, y: 0, duration: 1 })
.to('.subtitle', { opacity: 1, y: 0, duration: 0.5 }, '-=0.3')
.to('.cta', { scale: 1, duration: 0.3 });
When You'll Hear This
"GSAP's ScrollTrigger makes scroll-based animations effortless" / "For Awwwards-level animations, you need GSAP — CSS animations won't cut it"
Related Terms
CSS Animations
CSS animations let you make things move, spin, fade, and bounce using only CSS — no JavaScript needed.
Framer Motion
Framer Motion makes animations in React embarrassingly easy. Want a div to slide in? Just say 'animate this from here to there' and it handles the physics.
Lottie
Lottie plays After Effects animations on the web as tiny JSON files instead of heavy GIFs or videos.
Web Animations API
The Web Animations API lets you do CSS animations and transitions from JavaScript, with full control over playback.