CSS transition

A CSS feature that animates a property smoothly from one value to another over a set time when it changes.

In more detail

Transitions and animations make interfaces feel responsive, but they must be turned down for people who ask for reduced motion and turned off during screenshot tests. Durations are often stored as tokens so they can be set to zero in one place.

Example

In the browser: You name the property to watch, the duration and an easing curve. transition: opacity 200ms ease makes any opacity change fade instead of jumping.

Related terms

Taught in

References