jQuery delay () الطريقة

❮ طرق تأثير 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:

  • milliseconds
  • "slow"
  • "fast"
queueName Optional. Specifies the name of the queue

Default is "fx", the standard effects queue

جربها بنفسك - مثال


كيفية تأخير الرسوم المتحركة.


❮ طرق تأثير jQuery