CSS Auto hide elements after 5 seconds

后端 未结 4 652
旧时难觅i
旧时难觅i 2020-11-28 04:48

Is it possible to hide element 5 seconds after the page load? I know there is a jQuery solution.

I want to do exactly same thing, but hoping to get the same result w

4条回答
  •  -上瘾入骨i
    2020-11-28 05:10

    Why not try fadeOut?

    $(document).ready(function() {
      $('#plsme').fadeOut(5000); // 5 seconds x 1000 milisec = 5000 milisec
    });
    
    
    Loading... Please Wait

    fadeOut (Javascript Pure):

    How to make fadeOut effect with pure JavaScript

提交回复
热议问题