vaweGitHub

EasingCSS keywords

CSS ease-in

Slow start, fast end, no soft stop. ease-in reaches 50% of its travel at 66% of the time and 90% at 94%. Its peak speed is 1.72x the average.

Exit

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
ease-in
linear
Bunched shapes are slow. Wide gaps are fast. Past the right line means overshoot.
ease-in
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.0011, 0.0045, 0.0098, 0.017, 0.026, 0.0366, 0.0487, 0.0623, 0.0772, 0.0935, 0.1109, 0.1296, 0.1493, 0.1702, 0.192, 0.2149, 0.2386, 0.2633, 0.2889, 0.3154, 0.3426, 0.3707, 0.3995, 0.4291, 0.4595, 0.4905, 0.5223, 0.5548, 0.588, 0.6219, 0.6564, 0.6916, 0.7275, 0.7641, 0.8014, 0.8394, 0.8782, 0.9178, 0.9582, 1);
cubic-bezier (the keyword's definition)
animation-timing-function: cubic-bezier(0.42, 0, 1, 1);
web animations api
el.animate({ translate: ['0 0', '240px 0'] }, { duration: 600, easing: 'cubic-bezier(0.42, 0, 1, 1)', fill: 'both' });
css
animation: slide 600ms ease-in;

Numbers

50% of travel
66%of the time
90% of travel
94%of the time
After 10% of time
1.7%of the travel is done
Peak speed
1.72xtimes 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.0 points

Use and avoid

Use for

  • An element leaving the screen, where it should be fastest as it goes.
  • A build-up before a cut.

Avoid for

  • Entrances: the start is slow and the viewer waits.
  • A move that must end at rest: it stops dead at full speed.

Nearest vawe ease

carry, curve gap 0.0974.

More easing