Web Animations API
ELI5 — The Vibe Check
The Web Animations API lets you do CSS animations and transitions from JavaScript, with full control over playback. Pause, reverse, speed up, seek to any point - it's like having a remote control for animations. No library needed, it's built into the browser.
Real Talk
The Web Animations API provides a JavaScript interface for creating and controlling animations, unifying CSS Animations and CSS Transitions under a single programmatic model. It offers fine-grained control over animation playback, timing, and compositing directly through the browser engine.
Show Me The Code
element.animate(
[{ transform: 'scale(1)' }, { transform: 'scale(1.5)' }],
{ duration: 300, easing: 'ease-out', fill: 'forwards' }
);
When You'll Hear This
"WAAPI lets you pause and reverse animations programmatically" / "No need for GreenSock for basic animations anymore"
Related Terms
CSS-in-JS
CSS-in-JS is the controversial philosophy of writing your styles in JavaScript instead of CSS files. Fans love the co-location and dynamic styling.
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.
View Transitions API
The View Transitions API lets you animate between page states with cinematic transitions, like native apps do.