.delay()
Syntax
.delay(duration, [queueName])
Parameters
duration
- The number of milliseconds to delay execution of the next item in the queue
queueName (optional)
- name of the queue. Defaults to fx, the standard effects queue
Return value
The jQuery object, for chaining purposes.
Description
Set a timer to delay execution of subsequent items in the queue.
Set an 800-millisecond delay between the .slideUp() and .fadeIn() of the foo element:
$('#foo').slideUp(300).delay(800).fadeIn(400);