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
| Parameter | Type | Default value | Description |
|---|---|---|---|
n | number | 7.5625 | Bounce stiffness. |
d | number | 2.75 | Interval divisor, setting how the bounces are spaced. |
Returns
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)