effect-motion
API Referenceeffect-motionNamespacesTimingFunctions

createEaseOutBounce

function createEaseOutBounce(n?, d?): TimingFunction;

Function: createEaseOutBounce()

function createEaseOutBounce(n?, d?): TimingFunction;

Defined in: packages/motion/src/Timing.ts:258

Build a Bounce easing with custom stiffness and bounce spacing.

Parameters

ParameterTypeDefault valueDescription
nnumber7.5625Bounce stiffness.
dnumber2.75Interval divisor, setting how the bounces are spaced.

Returns

TimingFunction

A TimingFunction to pass to any animator.

Remarks

Bounce curves imitate a ball hitting a surface: a series of ever-smaller rebounds. Unlike Elastic, they never go PAST the target — they arrive and rebound away from it. Prefer easeOutBounce and its siblings unless tuning the character.

The offsets are derived from the parameters, so f(1) = 1 holds for any stiffness and a tween still lands exactly.

Default Value

n — 7.5625; d — 2.75 (the canonical CSS bounce)

On this page