// Stop every running viewport animation (animations have no queue)
cy.stop(jumpToEnd?: boolean): thisStop every running viewport animation (animations have no queue).
| Name | Description |
|---|---|
jumpToEnd: boolean?Default: false | apply each animation's final values instead of freezing the viewport where the tween reached |
Returns
thisthis core, for chaining
Example
cy.animate({ pan: { x: 20, y: 10 }, duration: 100 });cy.stop(true);console.log(cy.animated()); // false