How can I fade out a div using jQuery?

前端 未结 7 1956
孤街浪徒
孤街浪徒 2020-12-05 09:46

Is there any way to fadeout a div after 5 Seconds without using a setTimeOut function?

7条回答
  •  攒了一身酷
    2020-12-05 10:25

    How about the fadeOut() function. Would look something like this:

    $("#myDiv").fadeOut(5000);
    

提交回复
热议问题