Function: wait()
wait(
seconds):FrameGenerator
Defined in: tween/wait.ts:19
Pauses the animation timeline for a fixed number of seconds.
Yields control back to the runtime each frame until the elapsed time reaches
seconds, then returns. Use inside sequence to add gaps between
animations, or inside parallel to delay a branch.
Parameters
seconds
number
How long to wait, in seconds.
Returns
Example
yield* sequence(
node.to({ opacity: 1 }, 0.3),
wait(0.5),
node.to({ opacity: 0 }, 0.3),
);