You can use .stop(true, true) to stop and clear the animation queue, for example:
$('.window').hover(function() { $(this).stop(true, true).animate({opacity: 1}, 500); }, function() { $(this).stop(true, true).animate({opacity: 0.7}, 500); });
source share