new RepeatWhileAnimation(predicate, animation)
TA.Animation object that repeats the animation while the predicate returns true
Parameters:
| Name | Type | Description |
|---|---|---|
predicate |
function | function that returns true to repeat the animation or false to complete it |
animation |
TA.Animation | the animation to repeat |
- Implements:
- Source:
Methods
start(obj, completeopt)
Starts the animation
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
obj |
TA.Object | the TA.Object to apply the Animation to | |
complete |
function |
<optional> |
function to be called when the animation is finished |
- Implements:
- Source: