// Stop in place, or at the targets with jumpToEnd — the whole animation, whatever elements it spans
ani.stop(jumpToEnd?: boolean): voidStop in place, or at the targets with jumpToEnd — the whole animation, whatever elements it spans. Through the manager, so a GPU-driven one releases its batch.
| Name | Description |
|---|---|
jumpToEnd: boolean?Default: false | apply the final values instead of freezing |
Returns
voidExample
ani.play();ani.stop(true);console.log(ani.playing()); // false