Brandon Aaron covered this issue on Learning jQuery a few months back: http://www.learningjquery.com/2009/01/quick-tip-prevent-animation-queue-buildup
HTH, SEAN O http://www.sean-o.com AppleTurnover wrote: > > > I've got a jquery function set up where it simply opens up a minicart > div when the cursor is placed over the shopping cart icon. My problem > is when the cursor is placed on the icon and removed very quickly more > than once, and before the animation is complete, the animation gets > queued infinitely. > > Here's the code, very simple: > > $('#cart_link').mouseenter(function(){ > $('#minicart').slideDown(300); > }); > > $('#cart_link').mouseleave(function(){ > $('#minicart').fadeOut(0); > return false; > }); > > How can I stop the animation queue? Thanks! > > -- View this message in context: http://www.nabble.com/Preventing-animations-from-piling-up-due-to-fast-mouse-movement-tp23154977s27240p23155175.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.