vaweGitHub

EasingClassic eases

easeInOutSine

It is slow at both ends and fast in the middle. The gentlest family: the speed changes slowly. easeInOutSine reaches 50% of its travel at 50% of the time and 90% at 80%. Its peak speed is 1.57x the average.

Movefamily: sine

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
easeInOutSine
linear
Bunched shapes are slow. Wide gaps are fast. Past the right line means overshoot.
easeInOutSine
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.0015, 0.0062, 0.0138, 0.0245, 0.0381, 0.0545, 0.0737, 0.0955, 0.1198, 0.1464, 0.1753, 0.2061, 0.2388, 0.273, 0.3087, 0.3455, 0.3833, 0.4218, 0.4608, 0.5, 0.5392, 0.5782, 0.6167, 0.6545, 0.6913, 0.727, 0.7612, 0.7939, 0.8247, 0.8536, 0.8802, 0.9045, 0.9263, 0.9455, 0.9619, 0.9755, 0.9862, 0.9938, 0.9985, 1);
cubic-bezier (matches within 0.5%)
animation-timing-function: cubic-bezier(0.36, 0, 0.64, 1);

Least-squares fit; the worst gap is 0.1 points of travel. The linear() string is exact.

web animations api
el.animate({ translate: ['0 0', '240px 0'] }, { duration: 600, easing: 'cubic-bezier(0.36, 0, 0.64, 1)', fill: 'both' });
vawe
import { easeInOutSine } from '../../core/motion/curves.js';
import { curveToLinear } from '../../core/motion/springs.js';

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

Numbers

50% of travel
50%of the time
90% of travel
80%of the time
After 10% of time
2.45%of the travel is done
Peak speed
1.57xtimes 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.1 points

Use and avoid

Use for

  • Moves between two resting positions: camera pushes, slides and loops.
  • Ambient loops, slow camera drift and background layers.

Avoid for

  • Quick UI feedback under 200 ms: the slow start delays the response.
  • Moves that must hit hard: the stop is too gentle.

Nearest vawe ease

glide, curve gap 0.0145.

More easing