Interface ElasticEasingFactory

Elastic easing function factory

interface ElasticEasingFactory {
    amplitude(a): ElasticEasingFactory;
    period(p): ElasticEasingFactory;
    (normalizedTime): number;
}
  • Calculate eased time.

    Parameters

    • normalizedTime: number

      Normalized time typically in the range [0, 1]

    Returns number

Methods

  • Returns a new elastic easing with the specified amplitude a. Defaults to 1,if not specified.

    Parameters

    • a: number

      Amplitude for elastic easing.

    Returns ElasticEasingFactory

  • Returns a new elastic easing with the specified amplitude a. Defaults to 0.3,if not specified.

    Parameters

    • p: number

      Period for elastic easing.

    Returns ElasticEasingFactory