delay() method in jQuery

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.


$(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.

Example 1 - delay() method

Try Yourself

Example 2 - multiple delay() methods

Try Yourself

Example 3 - multiple delay() methods

Try Yourself