jQuery Tutorial Tutorials - jQuery .delay()

jQuery .delay()

The .delay() method in jQuery is used to set a timer to delay execution of subsequent items in the queue.

jQuery .delay() syntax

.delay( duration [, queueName ]);
Parameter Type Description
duration Integer,String delay time in milliseconds
queueName String the name of the queue

jQuery .delay() Examples

example

delay 500ms between two animations.

$('#block').slideUp(400).delay(500).slideDown(400);

Try now

Date:2019-08-30 01:37:18 From:www.Lautturi.com author:Lautturi