YouTip LogoYouTip

Eff Delay

# jQuery delay() Method [![Image 4: jQuery Effect Methods](#) jQuery Effect Methods](#) ## Example Set a delay for different
elements: $("button").click(function(){ $("#div1").delay("slow").fadeIn(); $("#div2").delay("fast").fadeIn(); }); [Try it Β»](#) * * * ## Definition and Usage The delay() method sets a delay for the next item in the queue. * * * ## Syntax $(_selector_).delay(_speed,queueName_) | Parameter | Description | | :--- | :--- | | _speed_ | Optional. Specifies the speed of the delay. Possible values: * Milliseconds * "slow" * "fast" | | _queueName_ | Optional. Specifies the name of the queue. The default is "fx", the standard effects queue. | * * * ![Image 5: Example](#) ## Try it - Example [delay() and animate()](#) How to delay an animation. * * jQuery Effect Methods](#)
← Eff DequeueEff Clearqueue β†’