AnimationCurve is a representation of a curve that can be used to animate values over time.

Constructors

Properties

Accessors

Methods

Constructors

Properties

keys: Keyframe[]

The keyframes that define the curve.

Accessors

  • get duration(): number
  • The duration of the curve, which is the time of the last keyframe.

    Returns number

Methods

  • Clones this AnimationCurve and returns a new instance with the same keyframes (the keyframes are also cloned).

    Returns AnimationCurve

  • Evaluates the curve at the given time and returns the value of the curve at that time.

    Parameters

    • time: number

      The time at which to evaluate the curve.

    Returns number

    The value of the curve at the given time.

  • Parameters

    Returns number

Generated using TypeDoc