Capítulo 40 de 411
addPause() inserts a special callback that pauses the timeline's playback when the playhead reaches a given time/label.
| Parameter | Type | Default | Description |
|---|---|---|---|
position | String | Number | Label | "+=0" | where the pause fires |
callback | Function | null | optional function called right after pausing |
params | Array | null | arguments for the callback |
Returns: self.
tl.addPause("myLabel", () => console.log("paused"));