Caffeinated Coder
Book an appointment
Lesson 13 · Motion and scale

Transitions and animations

A CSS change normally lands on the very next frame: a jump. Add transition: scale 0.3s and the browser spreads the change over 300 ms instead, working out progress and an eased in-between value on every frame. Then write @keyframes with a waypoint at 50%, play it with the animation property, and see why animating a transform such as scale is cheap for the browser to draw.

12 min10 steps5 questionsAdvanced
Fig 13 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.