Skip to content

ani.progress()

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

ani.progress — Animations › Animation handle

Preview · Animations › Animation handle

Read in the complete API reference · All API members

// Elapsed fraction of the duration (read-only — no scrubbing)
ani.progress(): number

Elapsed fraction of the duration (read-only — no scrubbing).

Returns number

the fraction in [0, 1]

Example

console.log(ani.progress()); // 0

Example graph and handle setup