vaweGitHub

Easingvawe After Effects eases

pop

A fast start, then it passes its mark by about 15 per cent and settles back. pop reaches 50% of its travel at 17% of the time and 90% at 40%. Its peak speed is 4.79x the average. It passes the end value by up to 15.3%.

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
pop
linear
Bunched shapes are slow. Wide gaps are fast. Past the right line means overshoot.
pop
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: pop against linear.

Code

css linear() (exact)
animation-timing-function: linear(0, 0.0553, 0.104, 0.1483, 0.1895, 0.2282, 0.2649, 0.2998, 0.3333, 0.3656, 0.3966, 0.4267, 0.4557, 0.4839, 0.5112, 0.5378, 0.5636, 0.5887, 0.6132, 0.637, 0.6602, 0.6827, 0.7047, 0.7262, 0.747, 0.7674, 0.7872, 0.8064, 0.8252, 0.8434, 0.8611, 0.8783, 0.8951, 0.9113, 0.927, 0.9422, 0.957, 0.9712, 0.9849, 0.9982, 1.0109, 1.0232, 1.0349, 1.0461, 1.0568, 1.067, 1.0767, 1.0858, 1.0944, 1.1025, 1.11, 1.1169, 1.1233, 1.129, 1.1342, 1.1388, 1.1428, 1.1461, 1.1488, 1.1509, 1.1522, 1.1529, 1.1528, 1.1521, 1.1506, 1.1483, 1.1452, 1.1413, 1.1365, 1.1309, 1.1243, 1.1169, 1.1084, 1.0989, 1.0884, 1.0767, 1.0639, 1.0499, 1.0346, 1.018, 1);
cubic-bezier (exact)
animation-timing-function: cubic-bezier(0.12, 0.576, 0.65, 1.525);

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

web animations api
el.animate({ translate: ['0 0', '240px 0'] }, { duration: 600, easing: 'linear(0, 0.0553, 0.104, 0.1483, 0.1895, 0.2282, 0.2649, 0.2998, 0.3333, 0.3656, 0.3966, 0.4267, 0.4557, 0.4839, 0.5112, 0.5378, 0.5636, 0.5887, 0.6132, 0.637, 0.6602, 0.6827, 0.7047, 0.7262, 0.747, 0.7674, 0.7872, 0.8064, 0.8252, 0.8434, 0.8611, 0.8783, 0.8951, 0.9113, 0.927, 0.9422, 0.957, 0.9712, 0.9849, 0.9982, 1.0109, 1.0232, 1.0349, 1.0461, 1.0568, 1.067, 1.0767, 1.0858, 1.0944, 1.1025, 1.11, 1.1169, 1.1233, 1.129, 1.1342, 1.1388, 1.1428, 1.1461, 1.1488, 1.1509, 1.1522, 1.1529, 1.1528, 1.1521, 1.1506, 1.1483, 1.1452, 1.1413, 1.1365, 1.1309, 1.1243, 1.1169, 1.1084, 1.0989, 1.0884, 1.0767, 1.0639, 1.0499, 1.0346, 1.018, 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.pop, fill: 'both' },
);

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

Numbers

50% of travel
17%of the time
90% of travel
40%of the time
After 10% of time
33.33%of the travel is done
Peak speed
4.79xtimes the average
Overshoot
15.3%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%-1.5x0%

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: -1.5 } }],
]);

Use and avoid

Use for

  • A call to action, a check mark, a corner notification that slides in over more than 20 px: one small thing that must feel alive, in 0.5 to 0.8 s.
  • The peak comes at 77% of the move: a 0.5 s pop leaves 3.5 frames of settle at 30 fps. For a small item that moves 3 to 20 px (a bubble, a chip, a tip) use the send spring instead (k 500, d 25).

Avoid for

  • Text blocks and anything with more than one item moving: overshoot on many things reads as shaking.
  • Opacity. A value past 1 is clamped, so the overshoot does nothing.
Jobs for pop, from the job table
JobDuration
Small pop or notification0.5 to 0.8 s for a corner notification that slides in over more than 20 px

Video components that use pop

17 video components set EASE.pop. The first four play here.

Show the other 5

More easing