是否可以通過mouseover和animate.css來動畫元素?通過mouseover和animate.css動畫元素
$(document).ready(function(){
$("p").mouseover(function(){
$("p").css("background-color", "red");
$("#mystyle").animateCss('bounce');
});
$("p").mouseout(function(){
$("p").css("background-color", "gray");
});
});
我試過了,但有些事情是錯的。 https://jsfiddle.net/f79b7033/
如果你想使用'animateCss'功能,你需要把它列入你的代碼。檢查我的答案:) – Dekel