I’m trying to handle a menu, where when you hover over an item, a box fades in, another item, another box fades in:
$( '.all' ).fadeOut( 'fast', function() { $( '#item' ).fadeIn( 'fast' );
but sometimes when you use the mouse too fast, multiple things show up or everything goes bye and usch.. how do I handle the race gracefully?
stop(true)might be enough, hard to tell without seeing your html.Ref: http://api.jquery.com/stop/