Skip to content

eles.delay(duration, complete?)

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

eles.delay — Collection › Animation

Preview · Collection › Animation

Read in the complete API reference · All API members

// A no-op tween — a timed pause that touches no channels, so it composes with any running animation (use delayAnimation().play() + await to sequence)
eles.delay(duration: number, complete?: () => void): this

A no-op tween — a timed pause that touches no channels, so it composes with any running animation (use delayAnimation().play() + await to sequence).

Parameters
NameDescription
duration: number

the pause in ms

complete: () => void?

called when it elapses

Returns this

this collection, for chaining

Example

eles.delay(1);
eles.stop(true);
console.log(eles.animated()); // false

Example graph and handle setup