Linear easing

Also called linear animation or linear timing function

Easing that moves at one constant speed from start to finish, with no speeding up or slowing down, drawn as a straight line on a graph.

What is Linear easing?

With linear easing, an animation covers the same distance in every moment of its duration. On a graph of progress over time it is a straight diagonal. In CSS it is the linear keyword.

Linear suits motion that never really starts or stops: loading spinners, marquees, tickers, progress bars, and animations tied directly to scroll position. Put any other easing on a looping spinner and it surges and slows on every turn.

For things that start and stop, such as a menu opening or a card sliding into place, linear motion looks mechanical, because real objects speed up and slow down. Use ease-out or ease-in-out there instead.

CSS also has a linear() function that takes a list of points, such as linear(0, 0.25 75%, 1). Despite the name, it can approximate bounces and springs by joining many points with straight segments.

Often confused with

Stepped animation
A stepped animation jumps between a fixed number of frames. Linear easing moves smoothly at a constant speed.
All terms

Easing

A curve that controls how an animation’s speed changes over time, so motion can start slow, land softly, or keep one steady pace.

Spinner

A small looping animation, usually a rotating ring, that shows the app is busy with a short task of unknown length.

Marquee

A strip of logos or text that scrolls sideways in an endless loop, often used for "trusted by" rows and announcements.

Looping animation

An animation that plays more than once, either a set number of times or forever, set in CSS with animation-iteration-count.