AnimateComp:
animate<T>(name: string, keys: T[], opts: AnimateOpt): void
Animates a property on this object.param
name Name of the property to animate.
param
keys Keys determining the value at a certain point in time.
param
opts Options.
unanimate(name: string): void
Removes the animation from the given property.param
name Name of the property to remove the animation from.
unanimateAll(): void
Removes the animations from all propertiesonAnimateFinished(cb: ()=>void): KEventController
Attaches an event handler which is called when all the animation channels have finished.param
cb The event handler called when the animation finishes.
onAnimateChannelFinished(cb: (name: string)=>void): KEventController
Attaches an event handler which is called when an animation channels has finished.param
cb The event handler called when an animation channel finishes.