JQuery delay before fadeOut

前端 未结 3 898
小鲜肉
小鲜肉 2021-02-12 09:21

I have written a jquery script that allows me to fade divs in and out, then repeat. The code works fine. However, when I try to add a delay (I want the div to stay up a few seco

3条回答
  •  情深已故
    2021-02-12 10:25

    Have you tried .delay()? something like:

    $(".home_entry_txt").fadeIn().delay(200).queue(function(next) {
    $(".home_entry_txt").fadeOut("slow");
    });
    

提交回复
热议问题