forked from cytoscape/cytoscape.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Collection clearqueue
maxkfranz edited this page Mar 8, 2012
·
1 revision
Remove all queued animations for the elements in the collection.
Empties the animation queues of all elements in the collection
This function clears the animation queue of each element in the collection. Calling eles.clearQueue() stops all queued animation not currently running from running in the future by removing them from the animation queue.
cy.nodes()
.animate({ bypass: { fillColor: "red" } }) // animate to red
.animate({ bypass: { fillColor: "bue" } }) // queue animate to blue
.clearQueue(); // animate to blue is in the queue, and so it's removed