jQuery delay () الطريقة
مثال
تأخير عناصر <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 |
جربها بنفسك - مثال
كيفية تأخير الرسوم المتحركة.