How long is the tween
Starting value
Final value
Function to call on each advance
with the new number vlaue
Optional easing function
Function to call when the tween finishes
Duration remaining for this tween to run
Advances the tween by the given duration and calls the update callback with the new value for the number.
Duration to spend on this tween.
Returns the duration consumed by this tween.
Instantly finishes the tween, calling the update callback with the final value and calling the finished callback if it was provided, identical to
calling advance()
with remainingDuration
Instantly finishes the tween and does not call the update callback nor the finished callback.
Generated using TypeDoc
Animates a number from one value to another, with optional tweening.