CSS transition Playground

Rara slides a cloth along the bar of Mrs. Lastri’s frame: write a transition, trigger it, and each property’s progress is read from the browser every frame…

Why it matters

Hovers, toggles, accordions and dropdowns that feel smooth: all transitions. The right duration and timing function make a UI feel responsive; the wrong ones feel sluggish or janky. And some properties (like display) refuse to transition without a trick.

The key idea

A transition animates a change, along its timing function’s curve

Common mistakes

Try it in this playground