API

Function AnimationCreateMergeAndStartAnimation

  • Creates a new animation, merges it with the existing animations and starts it

    Parameters

    • name: string

      Name of the animation

    • node: Node

      Node which contains the scene that begins the animations

    • targetProperty: string

      Specifies which property to animate

    • framePerSecond: number

      The frames per second of the animation

    • totalFrame: number

      The total number of frames

    • from: any

      The frame at the beginning of the animation

    • to: any

      The frame at the end of the animation

    • OptionalloopMode: number

      Specifies the loop mode of the animation

    • OptionaleasingFunction: EasingFunction

      (Optional) The easing function of the animation, which allow custom mathematical formulas for animations

    • OptionalonAnimationEnd: () => void

      Callback to run once the animation is complete

    Returns Nullable<Animatable>

    Nullable animation