easeOutSine
It starts fast and ends slowly. The gentlest family: the speed changes slowly. easeOutSine reaches 50% of its travel at 33% of the time and 90% at 71%. Its peak speed is 1.57x the average.
Demo
easeOutSine
linear
easeOutSine
linear
Your system asks for reduced motion, so nothing plays. The charts above show the whole move.
Code
animation-timing-function: linear(0, 0.0393, 0.0785, 0.1175, 0.1564, 0.1951, 0.2334, 0.2714, 0.309, 0.3461, 0.3827, 0.4187, 0.454, 0.4886, 0.5225, 0.5556, 0.5878, 0.6191, 0.6494, 0.6788, 0.7071, 0.7343, 0.7604, 0.7853, 0.809, 0.8315, 0.8526, 0.8725, 0.891, 0.9081, 0.9239, 0.9382, 0.9511, 0.9625, 0.9724, 0.9808, 0.9877, 0.9931, 0.9969, 0.9992, 1);animation-timing-function: cubic-bezier(0.33, 0.52, 0.64, 1);Least-squares fit; the worst gap is 0.1 points of travel. The linear() string is exact.
el.animate({ translate: ['0 0', '240px 0'] }, { duration: 600, easing: 'cubic-bezier(0.33, 0.52, 0.64, 1)', fill: 'both' });import { easeOutSine } from '../../core/motion/curves.js';
import { curveToLinear } from '../../core/motion/springs.js';
const easing = curveToLinear(easeOutSine, { tolerance: 0.002 }); // the linear() string above
const x = easeOutSine(u); // per-frame code, u in 0..1Numbers
- 50% of travel
- 33%of the time
- 90% of travel
- 71%of the time
- After 10% of time
- 15.64%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
- Entrances and replies to a click, where the thing should respond at once and then settle.
- Ambient loops, slow camera drift and background layers.
Avoid for
- Loops: it stops dead at the end and has no speed to hand on.
- Moves that must hit hard: the stop is too gentle.
Nearest vawe ease
leave, curve gap 0.0863.