delay JQuery effects

前端 未结 6 1666
别那么骄傲
别那么骄傲 2020-11-27 16:07

I want to fade out an element and all its child elements after a delay of a few seconds. but I haven\'t found a way to specify that an effect should start after a specified

6条回答
  •  春和景丽
    2020-11-27 16:27

    setTimeout(function() { $('#foo').fadeOut(); }, 5000);
    

    The 5000 is five seconds in milliseconds.

提交回复
热议问题