easeOutQuint
It starts fast and ends slowly. A very strong ease: almost vertical at the fast end. easeOutQuint reaches 50% of its travel at 13% of the time and 90% at 37%. Its peak speed is 5x the average.
Demo
easeOutQuint
linear
easeOutQuint
linear
Your system asks for reduced motion, so nothing plays. The charts above show the whole move.
Code
animation-timing-function: linear(0, 0.1189, 0.2262, 0.3228, 0.4095, 0.4871, 0.5563, 0.6178, 0.6723, 0.7204, 0.7627, 0.7997, 0.8319, 0.8599, 0.884, 0.9046, 0.9222, 0.9371, 0.9497, 0.9601, 0.9688, 0.9758, 0.9815, 0.9861, 0.9898, 0.9926, 0.9947, 0.9964, 0.9976, 0.9984, 0.999, 0.9994, 0.9997, 0.9998, 0.9999, 1, 1, 1, 1, 1, 1);animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);Least-squares fit; the worst gap is 1.1 points of travel. Use linear() when the end of the curve matters.
el.animate({ translate: ['0 0', '240px 0'] }, { duration: 600, easing: 'linear(0, 0.1189, 0.2262, 0.3228, 0.4095, 0.4871, 0.5563, 0.6178, 0.6723, 0.7204, 0.7627, 0.7997, 0.8319, 0.8599, 0.884, 0.9046, 0.9222, 0.9371, 0.9497, 0.9601, 0.9688, 0.9758, 0.9815, 0.9861, 0.9898, 0.9926, 0.9947, 0.9964, 0.9976, 0.9984, 0.999, 0.9994, 0.9997, 0.9998, 0.9999, 1, 1, 1, 1, 1, 1)', fill: 'both' });import { easeOutQuint } from '../../core/motion/curves.js';
import { curveToLinear } from '../../core/motion/springs.js';
const easing = curveToLinear(easeOutQuint, { tolerance: 0.002 }); // the linear() string above
const x = easeOutQuint(u); // per-frame code, u in 0..1Numbers
- 50% of travel
- 13%of the time
- 90% of travel
- 37%of the time
- After 10% of time
- 40.95%of the travel is done
- Peak speed
- 5xtimes the average
- Overshoot
- 0%stays inside the end
- Undershoot
- 0%never below the start
- linear() points
- 41at a 0.002 tolerance
- cubic-bezier
- closeworst gap 1.1 points
Use and avoid
Use for
- Entrances and replies to a click, where the thing should respond at once and then settle.
- Large elements that should settle with weight.
Avoid for
- Loops: it stops dead at the end and has no speed to hand on.
- Small elements: they seem to teleport and then crawl.
Nearest vawe ease
land, curve gap 0.0454.