vaweGitHub

EasingClassic eases

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.

Exitfamily: quad

Demo

Progress against time, with the playhead0100.51progress50%90%Speed against time, in multiples of average speed0100.51speed, x average
Dashed: linear, and 1× speed. The dot and the line move with the object below.
Spacing: 24 equal steps of time
easeInQuad
linear
Bunched shapes are slow. Wide gaps are fast. Past the right line means overshoot.
easeInQuad
linear

Your system asks for reduced motion, so nothing plays. The charts above show the whole move.

Four interface motions with this ease
Card enters
Modal scales in
Toast drops
Menu slides

Code

css linear() (exact)
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);
cubic-bezier (matches within 0.5%)
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.

web animations api
el.animate({ translate: ['0 0', '240px 0'] }, { duration: 600, easing: 'cubic-bezier(0.34, 0, 0.68, 0.36)', fill: 'both' });
vawe
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..1

Numbers

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.

More easing