Skip to content

eles.animated()

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

eles.animated — Collection › Animation

Preview · Collection › Animation

Read in the complete API reference · All API members

// True when any of these elements has a running animation
eles.animated(): boolean

True when any of these elements has a running animation.

Returns boolean

whether any element here is animating — not whether all are, and not whether the viewport is (that is cy.animated())

Example

console.log(eles.animated()); // false

Example graph and handle setup