jquery remove class after css animation played?

后端 未结 6 1814
甜味超标
甜味超标 2021-01-04 11:06

I have the css code:

body.start{-webkit-animation:srcb ease-in .4s 1;}

and just play once when entered the website

but the problem

6条回答
  •  無奈伤痛
    2021-01-04 12:07

    Another way perhaps?

    $(window).load(function(){
        setTimeout(function(){
            $('body.start').removeClass('start')
        }, 4000);
    });
    

提交回复
热议问题