Skip to content

ani.playing()

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

ani.playing — Animations › Animation handle

Preview · Animations › Animation handle

Read in the complete API reference · All API members

// Whether the animation is running and not paused
ani.playing(): boolean

Whether the animation is running and not paused.

Returns boolean

true while playing

Example

console.log(ani.playing()); // false

Example graph and handle setup