- The `queue` function will add a "play" object or string (or array of them) to a queue. - If the queue was previously empty, the queue will be executed and animations will begin immediately. - Callbacks will be available for each animation and when the queue is empty. - Queue items can be added at any time. - A `clearQueue` function will reset the animation and clear all items from the queue - The existing play function will use the queue logic but clear the queue each time it's invoked. - A `chain` function, though similar to queue, will clear the queue before filling it up again.
The
queuefunction will add a "play" object or string (or array of them) to a queue.If the queue was previously empty, the queue will be executed and animations will begin immediately.
Callbacks will be available for each animation and when the queue is empty.
Queue items can be added at any time.
A
clearQueuefunction will reset the animation and clear all items from the queueThe existing play function will use the queue logic but clear the queue each time it's invoked.
A
chainfunction, though similar to queue, will clear the queue before filling it up again.