// Like {@link delay}, but returns the handle instead of chaining
eles.delayAnimation(duration: number, complete?: () => void): AnimationHandleLike delay, but returns the handle instead of chaining.
| Name | Description |
|---|---|
duration: number | the pause in ms |
complete: () => void? | called when it elapses |
Returns
AnimationHandlethe handle; nothing runs until play()
Example
const handle = eles.delayAnimation(1);await handle.play();console.log(handle.progress()); // 1