API

Interface IEasingFunction

This represents the main contract an easing function should follow. Easing functions are used throughout the animation system.

interface IEasingFunction {
    ease(gradient: number): number;
}

Implemented by

Index
  • Given an input gradient between 0 and 1, this returns the corresponding value of the easing function. The link below provides some of the most common examples of easing functions.

    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