easeInQuint
It starts slowly and ends fast. A very strong ease: almost vertical at the fast end. easeInQuint reaches 50% of its travel at 87% of the time and 90% at 98%. Its peak speed is 5x the average.
Demo
easeInQuint
linear
easeInQuint
linear
Your system asks for reduced motion, so nothing plays. The charts above show the whole move.
Code
animation-timing-function: linear(0, 0, 0, 0, 0, 0, 0.0001, 0.0002, 0.0003, 0.0006, 0.001, 0.0016, 0.0024, 0.0036, 0.0053, 0.0074, 0.0102, 0.0139, 0.0185, 0.0242, 0.0313, 0.0399, 0.0503, 0.0629, 0.0778, 0.0954, 0.116, 0.1401, 0.1681, 0.2003, 0.2373, 0.2796, 0.3277, 0.3822, 0.4437, 0.5129, 0.5905, 0.6772, 0.7738, 0.8811, 1);animation-timing-function: cubic-bezier(0.64, 0, 0.78, 0);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, 0, 0, 0, 0, 0.0001, 0.0002, 0.0003, 0.0006, 0.001, 0.0016, 0.0024, 0.0036, 0.0053, 0.0074, 0.0102, 0.0139, 0.0185, 0.0242, 0.0313, 0.0399, 0.0503, 0.0629, 0.0778, 0.0954, 0.116, 0.1401, 0.1681, 0.2003, 0.2373, 0.2796, 0.3277, 0.3822, 0.4437, 0.5129, 0.5905, 0.6772, 0.7738, 0.8811, 1)', fill: 'both' });import { easeInQuint } from '../../core/motion/curves.js';
import { curveToLinear } from '../../core/motion/springs.js';
const easing = curveToLinear(easeInQuint, { tolerance: 0.002 }); // the linear() string above
const x = easeInQuint(u); // per-frame code, u in 0..1Numbers
- 50% of travel
- 87%of the time
- 90% of travel
- 98%of the time
- After 10% of time
- 0%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
- Exits and build-ups that leave the frame at speed.
Avoid for
- Entrances: the first frames barely move, so the viewer waits.
- Small elements: they seem to teleport and then crawl.
Nearest vawe ease
launch, curve gap 0.1459.