delay() in jQuery
The delay() method is used to delay the execution of functions which would follow a queue. It can be used with the standard effects queue or with a custom queue.
Durations are given in milliseconds, higher values indicate slower animations.
Syntax
$(selector).delay(duration[, queueName])
- duration
- Default value is 400.
- number - Integer values are given in milliseconds.
- slow - It denotes 600 milliseconds.
- fast - It denotes 200 milliseconds.
- queueName - It denotes a string containing the name of the queue. Defaults value is fx, the standard effects queue.