Skip to content

ani.reverse()

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

ani.reverse — Animations › Animation handle

Preview · Animations › Animation handle

Read in the complete API reference · All API members

// Swap the tween's ends with elapsed remapped
ani.reverse(): AnimationHandle

Swap the tween's ends with elapsed remapped.

Returns AnimationHandle

this handle, for chaining

Example

ani.reverse();
await ani.play();
console.log(ani.playing()); // false

Example graph and handle setup