I make a simple mouse enter and mouse leave animation. When you mouse enter the div. Than the links div is going open. When you mouse out, the div is going closed. I set a animation with slideUp and slideDown.
I have a problem with the animation. There are a lot of .comment divs on the page. When I hover over the items quickly. The slide animation is going crazy and you see the animation a lot of times. How can i fix that? Thanks!
$("#comments .comment .links").hide();
$("#comments .comment").mouseenter(function() {
$(".links",this).slideDown(300);
}).mouseleave(function() {
$(".links",this).slideUp(300);
});