js有一个'
animationend
'的事件,负责监听css3动画执行后情况,
这相当于css3动画的回调函数
下面是一个简单的例子:
$(".router-left").on("animationend",function(){
$(this).removeClass("animat");
});
$(".router-left").on("animationend",function(){
$(this).removeClass("animat");
});