我只是想通过jquery的animate.css在每次点击时触发动画。我的代码只是第一次触发动画。每次点击都会触发动画jquery
HTML
<input autocomplete="off" type="text" id="a-input" name="input">
<button id="next">Next</button>
JS
$("#next").click(function() {
$('#a-input').removeClass().addClass('animated shake');
});
我做错了!
更新的加载相关的CSS代码 –
相关的CSS是在这里:[animate.css(https://daneden.github.io/animate.css/) –