Interface PolynomialEasingFactory

Polynomial easing function factory

interface PolynomialEasingFactory {
    exponent(e): PolynomialEasingFactory;
    (normalizedTime): number;
}
  • Calculate eased time.

    Parameters

    • normalizedTime: number

      Normalized time typically in the range [0, 1]

    Returns number

Methods

Methods

  • Returns a new polynomial easing with the specified exponent e. If the exponent is not specified, it defaults to 3, equivalent to cubic.

    Parameters

    • e: number

      Exponent for polynomial easing.

    Returns PolynomialEasingFactory