Is it possible to animate element by mouseover and animate.css?
$(document).ready(function(){
$("p").mouseover(function(){
$("p").css("background-color", "red");
$("#mystyle").animateCss('bounce');
});
$("p").mouseout(function(){
$("p").css("background-color", "gray");
});
});
I tried it but something is wrong. https://jsfiddle.net/f79b7033/
According to the documentation in animation.css, you can extend the jQuery using:
And you didn't add it in your code.
Here is a working example (including the above code):
https://jsfiddle.net/dekelb/9jaq7fhr/