I'm using animate.css to zoom in on an image. The idea is that the animation works only with the hover / mouseenter, that is, when the user hover over it. When I use any animation other than zoomIn, it works normally; however, with the code below, even though the zoom works, the image flashes when you move your mouse in certain places. If I take the .mouseout, the event only occurs once. What to do to resolve?
<img src="imagens/icone.png" class="hover" />
<script>
$(document).ready(function() {
$('.hover').mouseenter(function() {
var mv = $(this);
mv.addClass('animated zoomIn');
});
$('.hover').mouseout(function(){
var mv = $(this);
mv.removeClass('animated zoomIn');
});
});
</script>