我只是想通過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/) –