The animate component.
animate<T>(name: string, keys: T[], opts: AnimateOpt): void
Animates a property on this object.
paramname- Name of the property to animate.
paramkeys- Keys determining the value at a certain point in time.
paramopts- Options.
unanimate(name: string): void
Removes the animation from the given property.
paramname- Name of the property to remove the animation from.
Removes the animations from all properties
Attaches an event handler which is called when all the animation channels have finished.
paramcb- The event handler called when the animation finishes.
Attaches an event handler which is called when an animation channels has finished.
paramcb- The event handler called when an animation channel finishes.
base: BaseValues
Base values for relative animation
animation: Pauses playing
seek(time: number): void
Move the animation to a specific point in time
paramtime- Time to move the animation to in seconds
Returns the duration of the animation
get(name: string): Anim
Returns the animation with the specified name
paramname- Name of the animation to retrieve
play(name: string): void
Play the animation with the specified name
paramname
Stop playing the current animation
Serializes the animation of this object to plain Javascript types
Serializes the options of this object to plain Javascript types