Generational Static Methods

This subset of static methods contains methods used to easily generate new Easing objects.

polynomial(degree: number = 2): Easing

Returns a Easing object whose in function is a polynomial function with the specified degree

exponential(base: number = 1024): Easing

Returns an Easing object whose in function is an exponential function with the specified base

back(intensity: number = 1.70158): Easing

Returns an Easing object whose in function is initially decreasing, returning a negative value for earlier time values

stepped(steps: number = 3): Easing

Returns an Easing object whose in function is linear and stepped (a linear staircase function)

wiggle(amplitude: number = 0.1, waves: number = 3): Easing

Returns a linear Easing object whose in function is modulated by a sine wave with the specified amplitude and number of waves throughout the curve

noise(amplitude: number = 0.1, frequency: 1, margin: number = 0.1, seed: number = 0): Easing

Returns a linear Easing object whose in function is modulated by simplex noise with the specified amplitude and frequency. The margin determines the amount of time it takes for the noise to fully influence the function. Margin values greater than zero ensure that the function smoothly transitions to 0 when time = 0 and 1 when time = 1.

Last updated

Was this helpful?