css3 fade in on page load, out after seconds

后端 未结 4 1760
不思量自难忘°
不思量自难忘° 2021-02-10 16:55

i have been searching around stackoverflow for an answer for a while but it seems to me this isn\'t been questioned before.

excuses if i might have missed the answer som

4条回答
  •  星月不相逢
    2021-02-10 17:32

    Use Jquery animate.

    $(document).ready(function(){
    $('.div').delay(2000).animate({opacity:100},1000)
    })
    

    This will delay for 2 seconds when the page loads and then the div will fade in.

提交回复
热议问题