Skip to content

ani.resume()

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

ani.resume — Animations › Animation handle

Preview · Animations › Animation handle

Read in the complete API reference · All API members

// Resume a paused animation with the clock shifted
ani.resume(): AnimationHandle

Resume a paused animation with the clock shifted.

Returns AnimationHandle

this handle, for chaining

Example

ani.play();
ani.pause();
ani.resume();
await ani.promise();
console.log(ani.progress()); // 1

Example graph and handle setup