Skip to content

cy.animated()

cy.animated — Core > Animation. Cytoscape.js signatures, parameters and return contract.

cy.animated — Core › Animation

Preview · Core › Animation

Read in the complete API reference · All API members

// True while the viewport is animating
cy.animated(): boolean

True while the viewport is animating.

Returns boolean

whether a viewport animation (pan/zoom/fit/center) is running; element animations do not count here — those are eles.animated()

Example

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

Example graph and handle setup