Easing
Volver a la referencia

Easing

The easing curves, kept apart from Math so they do not swamp it.

32 símbolos

easeOutBouncefunctionnacatamalon

easeOutBounce(t: number) => number

Bounce ease-out: lands and bounces like a dropped ball.

The other two bounce curves are written in terms of this one, so it is the only place the four arcs are spelled out.

Parámetros

tnumber

How far along, from 0 at the start to 1 at the end.

Ver el código · math/easing/functions/ease_out_bounce.ts:16

TEaseFntypenacatamalon

TEaseFn: (t: number) => number

An easing function: maps normalized time t in [0, 1] to an eased progress value (also normally [0, 1], though back/elastic overshoot outside it). Drives how a tween accelerates: pass one as the ease of a tween, or sample it directly.

Ver el código · math/easing/types/t_ease_fn.ts:10