vaweGitHub

EasingClassic eases

easeInElastic

It starts slowly and ends fast. It rings around its start, then jumps to the end. easeInElastic reaches 50% of its travel at 96% of the time and 90% at 99%. Its peak speed is 15.39x the average. It dips 37.31% below the start value first.

Overshootfamily: elastic

Demo

Progress against time, with the playhead0100.51progress50%90%Speed against time, in multiples of average speed011200.51speed, x average
Dashed: linear, and 1× speed. The dot and the line move with the object below. The speed graph stops at 12×.
Spacing: 24 equal steps of time
easeInElastic
linear
Bunched shapes are slow. Wide gaps are fast. Past the right line means overshoot.
easeInElastic
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.0004, -0.0003, -0.0001, 0, 0.0002, 0.0003, 0.0005, 0.0007, 0.0009, 0.0011, 0.0012, 0.0014, 0.0016, 0.0017, 0.0019, 0.002, 0.002, 0.0021, 0.0021, 0.002, 0.0019, 0.0018, 0.0016, 0.0014, 0.0011, 0.0008, 0.0004, 0, -0.0004, -0.0009, -0.0014, -0.002, -0.0025, -0.003, -0.0035, -0.004, -0.0045, -0.0049, -0.0052, -0.0055, -0.0057, -0.0058, -0.0058, -0.0057, -0.0054, -0.0051, -0.0046, -0.0039, -0.0031, -0.0022, -0.0012, 0, 0.0013, 0.0026, 0.004, 0.0055, 0.007, 0.0085, 0.01, 0.0114, 0.0127, 0.0138, 0.0148, 0.0156, 0.0162, 0.0165, 0.0164, 0.0161, 0.0154, 0.0143, 0.0129, 0.011, 0.0088, 0.0062, 0.0033, 0, -0.0036, -0.0074, -0.0115, -0.0156, -0.0199, -0.0241, -0.0282, -0.0322, -0.0359, -0.0391, -0.042, -0.0442, -0.0458, -0.0466, -0.0465, -0.0455, -0.0435, -0.0405, -0.0364, -0.0312, -0.025, -0.0176, -0.0093, 0, 0.0101, 0.021, 0.0324, 0.0442, 0.0562, 0.0682, 0.0799, 0.091, 0.1014, 0.1107, 0.1187, 0.125, 0.1294, 0.1317, 0.1315, 0.1287, 0.1232, 0.1146, 0.1031, 0.0884, 0.0706, 0.0499, 0.0263, 0, -0.0287, -0.0593, -0.0916, -0.125, -0.1589, -0.1928, -0.2259, -0.2575, -0.2868, -0.3132, -0.3357, -0.3536, -0.366, -0.3724, -0.372, -0.3641, -0.3483, -0.3242, -0.2915, -0.25, -0.1998, -0.1411, -0.0743, 0, 0.081, 0.1678, 0.2591, 0.3536, 0.4495, 0.5453, 0.6388, 0.7282, 0.8113, 0.8858, 0.9494, 1);
cubic-bezier: no usable fit
/* Best single fit, off by up to 22 points of travel: cubic-bezier(1, 0.36, 0.85, -1.13) */

A cubic-bezier() draws one smooth S. easeInElastic changes direction 7 times, so no four numbers draw it. Use the linear() string above.

web animations api
el.animate({ translate: ['0 0', '240px 0'] }, { duration: 600, easing: 'linear(0, -0.0004, -0.0003, -0.0001, 0, 0.0002, 0.0003, 0.0005, 0.0007, 0.0009, 0.0011, 0.0012, 0.0014, 0.0016, 0.0017, 0.0019, 0.002, 0.002, 0.0021, 0.0021, 0.002, 0.0019, 0.0018, 0.0016, 0.0014, 0.0011, 0.0008, 0.0004, 0, -0.0004, -0.0009, -0.0014, -0.002, -0.0025, -0.003, -0.0035, -0.004, -0.0045, -0.0049, -0.0052, -0.0055, -0.0057, -0.0058, -0.0058, -0.0057, -0.0054, -0.0051, -0.0046, -0.0039, -0.0031, -0.0022, -0.0012, 0, 0.0013, 0.0026, 0.004, 0.0055, 0.007, 0.0085, 0.01, 0.0114, 0.0127, 0.0138, 0.0148, 0.0156, 0.0162, 0.0165, 0.0164, 0.0161, 0.0154, 0.0143, 0.0129, 0.011, 0.0088, 0.0062, 0.0033, 0, -0.0036, -0.0074, -0.0115, -0.0156, -0.0199, -0.0241, -0.0282, -0.0322, -0.0359, -0.0391, -0.042, -0.0442, -0.0458, -0.0466, -0.0465, -0.0455, -0.0435, -0.0405, -0.0364, -0.0312, -0.025, -0.0176, -0.0093, 0, 0.0101, 0.021, 0.0324, 0.0442, 0.0562, 0.0682, 0.0799, 0.091, 0.1014, 0.1107, 0.1187, 0.125, 0.1294, 0.1317, 0.1315, 0.1287, 0.1232, 0.1146, 0.1031, 0.0884, 0.0706, 0.0499, 0.0263, 0, -0.0287, -0.0593, -0.0916, -0.125, -0.1589, -0.1928, -0.2259, -0.2575, -0.2868, -0.3132, -0.3357, -0.3536, -0.366, -0.3724, -0.372, -0.3641, -0.3483, -0.3242, -0.2915, -0.25, -0.1998, -0.1411, -0.0743, 0, 0.081, 0.1678, 0.2591, 0.3536, 0.4495, 0.5453, 0.6388, 0.7282, 0.8113, 0.8858, 0.9494, 1)', fill: 'both' });
vawe
import { easeInElastic } from '../../core/motion/curves.js';
import { curveToLinear } from '../../core/motion/springs.js';

const easing = curveToLinear(easeInElastic, { tolerance: 0.002 }); // the linear() string above
const x = easeInElastic(u);                                         // per-frame code, u in 0..1

Numbers

50% of travel
96%of the time
90% of travel
99%of the time
After 10% of time
0.2%of the travel is done
Peak speed
15.39xtimes the average
Overshoot
0%stays inside the end
Undershoot
37.31%below the start value
linear() points
161at a 0.002 tolerance
cubic-bezier
nonecannot express it

Use and avoid

Use for

  • A charge-up before a release, shown on one element.

Avoid for

  • Entrances and exits that must read cleanly: the element swings before it moves.

Nearest vawe ease

carry, curve gap 0.3964.

More easing