Function AnimationTransitionTo
-
AnimationTransitionTo(
property: string,
targetValue: any,
host: any,
scene: Scene,
frameRate: number,
transition: Animation,
duration: number,
onAnimationEnd?: Nullable<() => void>,
stopCurrent?: boolean,
customKeys?: IAnimationKey[],
): Nullable<Animatable>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
- property: string
Transition property of an object to a target value