API

Function AnimationTransitionTo

  • Transition property of an object to a target value

    Parameters

    • property: string

      The property to transition

    • targetValue: any

      The target value of the property

    • host: any

      The object where the property to animate belongs

    • scene: Scene

      Scene used to run the animation

    • frameRate: number

      Framerate (in frame/s) to use

    • transition: Animation

      The transition to apply

    • duration: number

      The duration of the transition (in milliseconds)

    • onAnimationEnd: Nullable<() => void> = null

      Callback to run once the animation is complete

    • stopCurrent: boolean = true

      Stop the current animations for this property (default: true)

    • OptionalcustomKeys: IAnimationKey[]

      Custom animation keys for the transition

    Returns Nullable<Animatable>

    the animatable created for this transition