API

Class BackEase

Easing function with a ease back shape (see link below).

Hierarchy (View Summary)

Implements

Index
amplitude: number = 1

[1] Defines the amplitude of the function

EASINGMODE_EASEIN: 0

Interpolation follows the mathematical formula associated with the easing function.

EASINGMODE_EASEINOUT: 2

Interpolation uses EaseIn for the first half of the animation and EaseOut for the second half.

EASINGMODE_EASEOUT: 1

Interpolation follows 100% interpolation minus the output of the formula associated with the easing function.

  • Given an input gradient between 0 and 1, this returns the corresponding value of the easing function.

    Parameters

    • gradient: number

      Defines the value between 0 and 1 we want the easing value for

    Returns number

    the corresponding value on the curve defined by the easing function