Probably a very simple question, but I'm a JavaScript newbie:
How do I wait for the "mouseenter" animation to be finished before starting the "mouseleave" animation?
Sometimes the mouse movement of the user is very quick but I want that animation to play completely mouseleave action is called.
$('.footer-links').on('mouseenter', function() {
$(this).addClass('hover');
});
$('.footer-links').on('mouseleave', function() {
$(this).removeClass('hover');
});