easeOutCubic
It starts fast and ends slowly. A firm start or stop. The common default. easeOutCubic reaches 50% of its travel at 21% of the time and 90% at 54%. Its peak speed is 3x the average.
Demo
easeOutCubic
linear
easeOutCubic
linear
Your system asks for reduced motion, so nothing plays. The charts above show the whole move.
Code
animation-timing-function: linear(0, 0.0731, 0.1426, 0.2085, 0.271, 0.3301, 0.3859, 0.4385, 0.488, 0.5345, 0.5781, 0.6189, 0.657, 0.6925, 0.7254, 0.7559, 0.784, 0.8099, 0.8336, 0.8553, 0.875, 0.8928, 0.9089, 0.9232, 0.936, 0.9473, 0.9571, 0.9657, 0.973, 0.9792, 0.9844, 0.9886, 0.992, 0.9946, 0.9966, 0.998, 0.999, 0.9996, 0.9999, 1, 1);animation-timing-function: cubic-bezier(0.33, 1, 0.67, 1);Least-squares fit; the worst gap is 0.2 points of travel. The linear() string is exact.
el.animate({ translate: ['0 0', '240px 0'] }, { duration: 600, easing: 'cubic-bezier(0.33, 1, 0.67, 1)', fill: 'both' });import { easeOutCubic } from '../../core/motion/curves.js';
import { curveToLinear } from '../../core/motion/springs.js';
const easing = curveToLinear(easeOutCubic, { tolerance: 0.002 }); // the linear() string above
const x = easeOutCubic(u); // per-frame code, u in 0..1Numbers
- 50% of travel
- 21%of the time
- 90% of travel
- 54%of the time
- After 10% of time
- 27.1%of the travel is done
- Peak speed
- 3xtimes the average
- Overshoot
- 0%stays inside the end
- Undershoot
- 0%never below the start
- linear() points
- 41at a 0.002 tolerance
- cubic-bezier
- exactworst gap 0.2 points
Use and avoid
Use for
- Entrances and replies to a click, where the thing should respond at once and then settle.
- General UI and card moves between 200 and 500 ms.
Avoid for
- Loops: it stops dead at the end and has no speed to hand on.
- Long travel across the frame: the stop is abrupt for the distance.
Nearest vawe ease
landSoft, curve gap 0.0189.