function testAnim(x) { | |
$('#animationSandbox').removeClass().addClass(x + ' animated').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function(){ | |
$(this).removeClass();//判断动画执行完毕 后执行这个function | |
}); | |
}; |
转载于:https://www.cnblogs.com/juexin/p/4630615.html