Skip to content

ani.pause()

ani.pause — Animations > Animation handle. Cytoscape.js signatures, parameters and return contract.

ani.pause — Animations › Animation handle

Preview · Animations › Animation handle

Read in the complete API reference · All API members

// Pause: freeze in place; the paused span leaves the timeline
ani.pause(): AnimationHandle

Pause: freeze in place; the paused span leaves the timeline.

Returns AnimationHandle

this handle, for chaining

Example

ani.play();
ani.pause();
console.log(ani.paused()); // true
ani.stop();

Example graph and handle setup