CSS animations: transitions, keyframes, easing, smooth speed
13 steps · about 5 h · Beginner
- An Interactive Guide to CSS Transitions (interactive, Josh W. Comeau, 40 min)
Start with two-state transitions, since they are the simplest way to animate and the interactive demos make the basics clear.
- Using CSS transitions (doc, MDN Web Docs, 20 min)
Lock in the transition shorthand (property, duration, timing function, delay) with the official reference.
- CSS Animations and Transitions: The Complete Guide (2026) (article, Generalist Programmer, 20 min)
This guide shows when a transition is enough and when you need @keyframes, which sets up the next step.
- An Interactive Guide to Keyframe Animations (interactive, Josh W. Comeau, 45 min)
It covers looping, multi-step animations, direction and the confusing fill modes, all with live examples.
- Transitions & Animations - Learn to Code Advanced HTML & CSS (tutorial, Shay Howe, 25 min)
A classic walkthrough that has you write a complete keyframe animation with duration, timing and delay.
- <easing-function> CSS type (doc, MDN Web Docs, 20 min)
Its easing comparison tool lets you see how ease, linear and steps differ before you design your own curves.
- cubic-bezier() CSS function (doc, MDN Web Docs, 20 min)
Explains what the four control-point numbers mean, so you can tune custom easing and bounce effects.
- animation-timing-function CSS property (doc, MDN Web Docs, 15 min)
Shows that easing can be applied to individual keyframes as well as to the whole animation.
- How to create high-performance CSS animations (article, web.dev, 25 min)
Teaches why transform and opacity stay smooth and how to swap in transform for layout-heavy properties.
- Animations and performance (article, web.dev, 15 min)
Explains the layout, paint and composite cost model and when to use will-change.
- CSS Animation Performance: What to Animate and What to Avoid (article, Peasy CSS, 15 min)
A tiered table of properties plus advice on recording animations in the Chrome DevTools Performance panel to check your own work.
- CSS Animations and Transitions: What to Animate, prefers-reduced-motion, and Performance (article, DEV Community, 15 min)
Finish by adding a prefers-reduced-motion fallback so your animations work for people sensitive to motion.
- Partial Keyframes (interactive, Josh W. Comeau, 25 min)
An advanced step: build reusable keyframe animations that read CSS variables and stack.