I have a hover effect with jquery on a menu, it works fine but if you move the mouse over the items a few times faster the animation then goes on as much times you got in that zone, sorry if I can't explain my problem as I wish, what I need is some kind of delay so if you move the mouse lots of times the function will trigger just one time and then you wait like 1sec for get the effect again. thanks!
$(".border").hover(function(){
if($(this).next('.sous_menu').is(':visible')){
$('.sous_menu').closest('.border').removeClass('border').addClass('border_active');
}else{
$(this).toggleClass('border_active border', 500);
}
});