Skip to content

eles.stop(jumpToEnd?)

eles.stop — Collection > Animation. Cytoscape.js signatures, parameters and return contract.

eles.stop — Collection › Animation

Preview · Collection › Animation

Read in the complete API reference · All API members

// Stop every running animation on these elements (animations have no queue)
eles.stop(jumpToEnd?: boolean): this

Stop every running animation on these elements (animations have no queue).

Parameters
NameDescription
jumpToEnd: boolean?Default: false

apply each animation's final values instead of freezing each channel where its tween reached

Returns this

this collection, for chaining

Example

eles.animate({ position: { x: 20, y: 10 }, duration: 100 });
eles.stop(true);
console.log(eles.animated()); // false

Example graph and handle setup