jQuery Effect - clearQueue() Method
Example
Stop the currently running animation:
$("#stop").click(function(){ $("#box").clearQueue(); });
Definition and Usage
The clearQueue() method stops all functions in the queue that have not yet been executed.
Different from the stop() method (only applicable to animations), clearQueue() can clear any queued functions (any functions added to the general jQuery queue via the .queue() method).
Syntax
$(selector).clearQueue(queueName)
Parameters | Description |
---|---|
queueName |
Optional. Specifies the name of the queue to stop. The default is "fx", the standard effect queue. |