Skip to content

EasingFunction

EasingFunction = (progress) => number

Defined in: utilities/animate/animate.ts:11

An easing function. It gets the progress of the animation, from 0 (just started) to 1 (finished), and returns how far along the value should be, also from 0 to 1. It should return 0 for 0 and 1 for 1, so the animation ends exactly on its target.

number

number