Type alias PeriodicEasingFunction

PeriodicEasingFunction: ((elapsedTime, initialValue, changeInValue, totalDuration, amplitude, period) => number)

Returns a value between [initialValue, initialValue + changeInValue] or [0, 1] that represents an in-between value along a Bezier curve.

Type declaration

    • (elapsedTime, initialValue, changeInValue, totalDuration, amplitude, period): number
    • Parameters

      • elapsedTime: number

        the time elapsed [0, d]

      • initialValue: number

        beginning value being interpolated (default = 0)

      • changeInValue: number

        change in value being interpolated (equivalent to: ending - beginning) (default = 1)

      • totalDuration: number

        duration interpolation is occurring over (default = 1)

      • amplitude: number

        The amplitude of the curve

      • period: number

        The period of the curve

      Returns number