恐怕解决此问题的唯一方法是使用一些Javascript,您必须将动画添加为类,然后在动画结束时将其删除。
$(".box").bind("webkitAnimationEnd mozAnimationEnd animationend", function(){ $(this).removeClass("animated") })$(".box").hover(function(){ $(this).addClass("animated"); })
恐怕解决此问题的唯一方法是使用一些Javascript,您必须将动画添加为类,然后在动画结束时将其删除。
$(".box").bind("webkitAnimationEnd mozAnimationEnd animationend", function(){ $(this).removeClass("animated") })$(".box").hover(function(){ $(this).addClass("animated"); })