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.
Demo
linear
linear
linear
linear
Your system asks for reduced motion, so nothing plays. The charts above show the whole move.
Code
animation-timing-function: linear(0, 1);animation-timing-function: linear;
/* the same as cubic-bezier(0, 0, 1, 1) */el.animate({ translate: ['0 0', '240px 0'] }, { duration: 600, easing: 'cubic-bezier(0, 0, 1, 1)', fill: 'both' });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.