jquery判断css3动画是否完成的方法

jquery判断css3动画是否完成的方法
//添加css3动画
<pre>
$('.p1title01, .p1title02').addClass('shake animated').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function () {
//css3动画播放完了 再移除
$('.p1title01, .p1title02').removeClass('shake animated');
});
</pre>

 

posted @ 2019-11-12 12:13  newmiracle宇宙  阅读(574)  评论(0编辑  收藏  举报