easeInQuad
It starts slowly and ends fast. A mild, even curve. easeInQuad reaches 50% of its travel at 71% of the time and 90% at 95%. Its peak speed is 2x the average.
Demo
easeInQuad
linear
easeInQuad
linear
Your system asks for reduced motion, so nothing plays. The charts above show the whole move.
Code
animation-timing-function: linear(0, 0.0006, 0.0025, 0.0056, 0.01, 0.0156, 0.0225, 0.0306, 0.04, 0.0506, 0.0625, 0.0756, 0.09, 0.1056, 0.1225, 0.1406, 0.16, 0.1806, 0.2025, 0.2256, 0.25, 0.2756, 0.3025, 0.3306, 0.36, 0.3906, 0.4225, 0.4556, 0.49, 0.5256, 0.5625, 0.6006, 0.64, 0.6806, 0.7225, 0.7656, 0.81, 0.8556, 0.9025, 0.9506, 1);animation-timing-function: cubic-bezier(0.34, 0, 0.68, 0.36);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.34, 0, 0.68, 0.36)', fill: 'both' });import { easeInQuad } from '../../core/motion/curves.js';
import { curveToLinear } from '../../core/motion/springs.js';
const easing = curveToLinear(easeInQuad, { tolerance: 0.002 }); // the linear() string above
const x = easeInQuad(u); // per-frame code, u in 0..1Numbers
- 50% of travel
- 71%of the time
- 90% of travel
- 95%of the time
- After 10% of time
- 1%of the travel is done
- Peak speed
- 2xtimes 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
- Exits and build-ups that leave the frame at speed.
Avoid for
- Entrances: the first frames barely move, so the viewer waits.
- Hero moves: the stop is too soft.
Nearest vawe ease
launch, curve gap 0.0554.