Constructor.
Elapsed time of tween(unit: millisecond).
Elapsed percentage of tween.
Specifies whether to stop all tweens.
Attach to HTMLElement element (The tween value will auto sync to this element).
HTMLElement or element id
You can use it to convert the current value to its final form, e.g. convert "int" to "rgb"
Tween instance
Calls the "onRepeat" function immediately(repeat times is 0).
Tween instance
Cancel this tween.
Specifies whether to call complete function.
Tween instance
Store arbitrary data associated with this tween.
Set easing function.
Tween instance
Get attachment.
Get data.
Get pause state.
Get repeat times.
Get target.
Indicates whether the tween is keeping.
Tween instance
Set the callback function when canceled.
Tween instance
Set the callback function when completion.
Tween instance
Set the callback function when repeating.
Tween instance
Set the callback function when startup.
Tween instance
Set the callback function when updating.
Tween instance
Release this retained tween.
Tween instance
Set repeat execution.
the repeat times(-1 is infinity)
where true causes the tween to go back and forth, alternating backward and forward on each repeat.
delay trigger time
Tween instance
Keep this tween, "killAll" has no effect on it.
Tween instance
Set pause state.
Start the tween/timer.
Tween instance
The destination values that the target wants to achieves.
destination values.
Tween instance
Simplified function for "to" - set alpha.
Simplified function for "to" - set crood x.
Simplified function for "to" - set crood x and y.
Simplified function for "to" - set crood y.
Update tween by the specified time.
millisecond unit
Check the target or attachment is tweening.
the target or attachment.
Kill all tweens.
Specifies whether to call complete function.
Kill all tweens of specified the target or attachment.
the target or attachment.
Specifies whether to call complete function.
Number of killed instances
Create a once timer.
interval millisecond
The callback function when completion.
The callback parameters when completion.
Tween instance
Create a timer.
interval millisecond
the repeat times(-1 is infinity)
if return FASLE, then will cancel this timer.
The callback function when completion.
The callback parameters when completion.
Tween instance
Create a tween.
the targer object.
set duration, not including any repeats or delays.
set initial delay which is the length of time in ms before the tween should begin.
Tween instance
Updates all tweens by the specified time.
millisecond unit
Generated using TypeDoc
ATween is a easy, fast and tiny tween library.=