Tween Class

A Tween for interpolating values of an object. Instances of this class are owned by a Tweens group.

see The tween.js users guide

Methods

Name Description
constructor(_group: Tweens, _object: any): Tween    
chain(...tweens: Tween[]): Tween    
delay(amount?: number): Tween    
duration(d: number): Tween    
easing(easingFunction?: EasingFunction): Tween    
end(): Tween    
getId(): number    
group(group: Tweens): Tween    
interpolation(interpolationFunction?: InterpolationFunction): Tween    
onComplete(callback?: TweenCallback): Tween    
onRepeat(callback: TweenCallback): Tween    
onStart(callback: TweenCallback): Tween    
onStop(callback: TweenCallback): Tween    
onUpdate(callback: UpdateCallback): Tween    
pause(time: number): Tween    
repeat(times: number): Tween    
repeatDelay(amount: number): Tween    
resume(time?: number): Tween    
start(time?: string | number): Tween    
stop(): Tween    
stopChainedTweens(): void    
to(properties: any, duration?: number): Tween    
update(time: number): boolean    
yoyo(yoyo: boolean): Tween    

Properties

Name Type Description
isPaused Accessor ReadOnly boolean    
isPlaying Accessor ReadOnly boolean    

Defined in

Last Updated: 12 June, 2024