I have sprite animations that animate on hover, and keep animating even when I mouseout. If I hover over the icon before the animation is complete, it resets the animation.
The animations are set at 2 seconds. Is there a way to hover over the animation and only have it reset after 2 seconds have passed since I mouseover'd it?
$(".book").on('mouseenter',function(){
$(this).toggleClass('sprite_animating');
});
$(".book").on('animationend', function(){
$(this).toggleClass('sprite_animating');
});