vaweGitHub

EasingCSS keywords

CSS linear

Constant speed from start to end. linear reaches 50% of its travel at 50% of the time and 90% at 90%. Its peak speed is 1x the average.

Move

Demo

Progress against time, with the playhead0100.51progress50%90%Speed against time, in multiples of average speed0100.51speed, x average
Dashed: linear, and 1× speed. The dot and the line move with the object below.
Spacing: 24 equal steps of time
linear
linear
Bunched shapes are slow. Wide gaps are fast. Past the right line means overshoot.
linear
linear

Your system asks for reduced motion, so nothing plays. The charts above show the whole move.

Four interface motions with this ease
Card enters
Modal scales in
Toast drops
Menu slides

Code

css linear() (exact)
animation-timing-function: linear(0, 1);
cubic-bezier (the keyword's definition)
animation-timing-function: linear;
/* the same as cubic-bezier(0, 0, 1, 1) */
web animations api
el.animate({ translate: ['0 0', '240px 0'] }, { duration: 600, easing: 'cubic-bezier(0, 0, 1, 1)', fill: 'both' });
css
animation: slide 600ms linear;

Numbers

50% of travel
50%of the time
90% of travel
90%of the time
After 10% of time
10%of the travel is done
Peak speed
1xtimes the average
Overshoot
0%stays inside the end
Undershoot
0%never below the start
linear() points
2at a 0.002 tolerance
cubic-bezier
exactworst gap 0.0 points

Use and avoid

Use for

  • Rotation spins, progress bars and loops, where a steady speed is the point.
  • Opacity cross-fades between two shots.

Avoid for

  • Moving a thing across the screen: it starts and stops with no ease, so it reads as mechanical.
  • Any entrance or exit over 0.3 s. Use an EASE name from vawe.

Nearest vawe ease

glide, curve gap 0.0657.

More easing