vaweGitHub

Easingvawe After Effects eases

nudge

A fast start, a slight pass of its mark, then it settles. nudge reaches 50% of its travel at 19% of the time and 90% at 49%. Its peak speed is 4.79x the average. It passes the end value by up to 6.34%.

Overshoot

Demo

Progress against time, with the playhead0100.51progress50%90%Speed against time, in multiples of average speed01400.51speed, x average
Dashed: linear, and 1× speed. The dot and the line move with the object below.
Spacing: 24 equal steps of time
nudge
linear
Bunched shapes are slow. Wide gaps are fast. Past the right line means overshoot.
nudge
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
2 s film from the vawe renderer: nudge against linear.

Code

css linear() (exact)
animation-timing-function: linear(0, 0.0546, 0.1016, 0.1438, 0.1824, 0.2183, 0.2519, 0.2838, 0.3141, 0.3431, 0.3709, 0.3976, 0.4233, 0.4482, 0.4722, 0.4955, 0.518, 0.5399, 0.5612, 0.5819, 0.602, 0.6215, 0.6406, 0.6591, 0.6772, 0.6947, 0.7118, 0.7285, 0.7447, 0.7605, 0.7759, 0.7909, 0.8054, 0.8196, 0.8334, 0.8467, 0.8597, 0.8723, 0.8845, 0.8964, 0.9078, 0.9189, 0.9296, 0.9399, 0.9498, 0.9593, 0.9685, 0.9772, 0.9856, 0.9936, 1.0012, 1.0084, 1.0151, 1.0215, 1.0274, 1.033, 1.0381, 1.0427, 1.0469, 1.0507, 1.054, 1.0568, 1.0591, 1.061, 1.0623, 1.0631, 1.0634, 1.0632, 1.0623, 1.0609, 1.0589, 1.0562, 1.053, 1.049, 1.0443, 1.039, 1.0328, 1.0259, 1.0181, 1.0095, 1);
cubic-bezier (exact)
animation-timing-function: cubic-bezier(0.12, 0.576, 0.65, 1.28);

Exact: the two After Effects handles are the two control points. EASE.nudge uses the linear() string above.

web animations api
el.animate({ translate: ['0 0', '240px 0'] }, { duration: 600, easing: 'linear(0, 0.0546, 0.1016, 0.1438, 0.1824, 0.2183, 0.2519, 0.2838, 0.3141, 0.3431, 0.3709, 0.3976, 0.4233, 0.4482, 0.4722, 0.4955, 0.518, 0.5399, 0.5612, 0.5819, 0.602, 0.6215, 0.6406, 0.6591, 0.6772, 0.6947, 0.7118, 0.7285, 0.7447, 0.7605, 0.7759, 0.7909, 0.8054, 0.8196, 0.8334, 0.8467, 0.8597, 0.8723, 0.8845, 0.8964, 0.9078, 0.9189, 0.9296, 0.9399, 0.9498, 0.9593, 0.9685, 0.9772, 0.9856, 0.9936, 1.0012, 1.0084, 1.0151, 1.0215, 1.0274, 1.033, 1.0381, 1.0427, 1.0469, 1.0507, 1.054, 1.0568, 1.0591, 1.061, 1.0623, 1.0631, 1.0634, 1.0632, 1.0623, 1.0609, 1.0589, 1.0562, 1.053, 1.049, 1.0443, 1.039, 1.0328, 1.0259, 1.0181, 1.0095, 1)', fill: 'both' });
vawe
import { EASE } from '../../core/motion/presets.js';

el.animate(
  [{ translate: '0 4vh', opacity: 0 }, { translate: '0 0', opacity: 1 }],
  { duration: 500, easing: EASE.nudge, fill: 'both' },
);

// per-frame code (window.seek, vawe.onFrame): easeFn('nudge')(u)

Numbers

50% of travel
19%of the time
90% of travel
49%of the time
After 10% of time
31.41%of the travel is done
Peak speed
4.79xtimes the average
Overshoot
6.34%past the end value
Undershoot
0%never below the start
linear() points
81at a 0.002 tolerance
cubic-bezier
exactbuilt from two handles

After Effects handles

Set these in After Effects under Keyframe Velocity: the outgoing handle on the first key, the incoming handle on the second. Influence is how far along the segment the handle reaches, in per cent of its duration. Speed is the pace at the key as a multiple of the segment’s average (0 stops dead, 1 is straight).

HandleNameInfluenceSpeedReal handles near it
out (first key)fling12%4.8x0.37%
in (second key)custom35%-0.8x0%

Measured on 1,339 Lottie segments (2,678 handles) and 27 HyperFrames segments. Near means influence within 10 points and speed within 0.3. No Lottie segment has both handles near this pair.

vawe: key table
import { keys } from '../../core/motion/presets.js';

// out handle on the first key, in handle on the second
keys(el, 'translate', [
  [0, '0 6vh', { out: 'fling' }],
  [0.6, '0 0', { in: { influence: 35, speed: -0.8 } }],
]);

Use and avoid

Use for

  • Every few items of a staggered group, so the row feels alive without each item bouncing.
  • Secondary elements next to a hero that uses pop: the same shape, less of it.

Avoid for

  • The hero itself, where the overshoot is too small to read. Use pop.
  • Opacity. A value past 1 is clamped, so the overshoot does nothing.
Jobs for nudge, from the job table
JobDuration
List stagger0.15 to 0.3 s a row, 30 to 80 ms apart, the run within 0.5 s

Video components that use nudge

1 video components set EASE.nudge. The first four play here.

More easing