easeOutQuart
It starts fast and ends slowly. A strong ease: most of the travel happens in the fast section. easeOutQuart reaches 50% of its travel at 16% of the time and 90% at 44%. Its peak speed is 4x the average.
Demo
easeOutQuart
linear
easeOutQuart
linear
Your system asks for reduced motion, so nothing plays. The charts above show the whole move.
Code
animation-timing-function: linear(0, 0.0963, 0.1855, 0.2679, 0.3439, 0.4138, 0.478, 0.5367, 0.5904, 0.6392, 0.6836, 0.7237, 0.7599, 0.7924, 0.8215, 0.8474, 0.8704, 0.8907, 0.9085, 0.924, 0.9375, 0.9491, 0.959, 0.9674, 0.9744, 0.9802, 0.985, 0.9888, 0.9919, 0.9943, 0.9961, 0.9974, 0.9984, 0.9991, 0.9995, 0.9998, 0.9999, 1, 1, 1, 1);animation-timing-function: cubic-bezier(0.26, 1, 0.49, 1);Least-squares fit; the worst gap is 0.4 points of travel. The linear() string is exact.
el.animate({ translate: ['0 0', '240px 0'] }, { duration: 600, easing: 'cubic-bezier(0.26, 1, 0.49, 1)', fill: 'both' });import { easeOutQuart } from '../../core/motion/curves.js';
import { curveToLinear } from '../../core/motion/springs.js';
const easing = curveToLinear(easeOutQuart, { tolerance: 0.002 }); // the linear() string above
const x = easeOutQuart(u); // per-frame code, u in 0..1Numbers
- 50% of travel
- 16%of the time
- 90% of travel
- 44%of the time
- After 10% of time
- 34.39%of the travel is done
- Peak speed
- 4xtimes 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.4 points
Use and avoid
Use for
- Entrances and replies to a click, where the thing should respond at once and then settle.
- Panels and overlays that need a clear stop.
Avoid for
- Loops: it stops dead at the end and has no speed to hand on.
- Short moves under 150 ms: the slow part is too short to see.
Nearest vawe ease
land, curve gap 0.0257.