Members
-
Easing function
-
-
End value of interpolation
-
Linear interpolator on tween property.
-
Unique id for this tweening operation
-
The tween-manager whose update loop handles this tween.
-
Object that is observed and the interpolated value to be stored in.
-
-
Start value of interpolation
-
Used for pooling.
Methods
-
Chains a tween that will run after this one finishes.
Name Type Description startValue
W endValue
W duration
DOMHighResTimeStamp erp
PUXI.Erp.<W> ease
PUXI.Ease optional -
Called when a tween is complete and no references to it are held. This will pool it (if auto-created).
Custom tweens should override this.
-
Repeats this tween
repeat
no. of times again. If the tween is still running, then this is no. of times it will again (not added to the previous repeat count).Each time the tween is repeated, a
cycle
event is fired.By default, the repeat count of any tween is 1.
Name Type Default Description repeat
number the repeat count
flip
boolean true optional whether to switch start/end values each cycle
Returns:
Type Description Tween.<T> - this tween, useful for method chaining
-
Clears the tween's extra properties.
-
Configures this tween to update the observed-property on a tween target object each animation frame.
Name Type Description target
PUXI.TweenTarget.<T> object on which property is being tweened
observedProperty
string name of property on target
-
Updates the observed value.
Name Type Description t
DOMHighResTimeStamp current time