jQuery देरी () विधि
उदाहरण
विभिन्न <div> तत्वों में देरी करें:
$("button").click(function(){
$("#div1").delay("slow").fadeIn();
$("#div2").delay("fast").fadeIn();
});
परिभाषा और उपयोग
देरी () विधि कतार में अगले आइटम के निष्पादन में देरी के लिए एक टाइमर सेट करती है।
वाक्य - विन्यास
$(selector).delay(speed,queueName)
Parameter | Description |
---|---|
speed | Optional. Specifies the speed of the delay Possible values:
|
queueName | Optional. Specifies the name of the queue Default is "fx", the standard effects queue |
इसे स्वयं आज़माएं - उदाहरण
एनीमेशन में देरी कैसे करें।