您的动画正在排队。为防止这种情况,请使用 jQuery 停止功能:http://api.jquery.com/stop/
我更新了您的代码以包含停止功能的使用。它现在对我有用。这是更新的代码:
<script type="text/javascript">//<![CDATA[
$(window).load(function(){
$('#blue-top').mouseenter(function(){
$('#blue-top').stop(true).animate({height:'200'}, 500);
$('#blue-middle').stop(true).animate({height:'80'}, 500);
$('#blue-bottom').stop(true).animate({height:'80'}, 500);
});
$('#blue-top').mouseleave(function(){
$('#blue-top').stop(true).animate({height:'120'}, 500);
$('#blue-middle').stop(true).animate({height:'120'}, 500);
$('#blue-bottom').stop(true).animate({height:'120'}, 500);
});
$('#blue-middle').mouseenter(function(){
$('#blue-top').stop(true).animate({height:'80'}, 500);
$('#blue-middle').stop(true).animate({height:'200'}, 500);
$('#blue-bottom').stop(true).animate({height:'80'}, 500);
});
$('#blue-middle').mouseleave(function(){
$('#blue-top').stop(true).animate({height:'120'}, 500);
$('#blue-middle').stop(true).animate({height:'120'}, 500);
$('#blue-bottom').stop(true).animate({height:'120'}, 500);
});
$('#blue-bottom').mouseenter(function(){
$('#blue-top').stop(true).animate({height:'80'}, 500);
$('#blue-middle').stop(true).animate({height:'80'}, 500);
$('#blue-bottom').stop(true).animate({height:'200'}, 500);
});
$('#blue-bottom').mouseleave(function(){
$('#blue-top').stop(true).animate({height:'120'}, 500);
$('#blue-middle').stop(true).animate({height:'120'}, 500);
$('#blue-bottom').stop(true).animate({height:'120'}, 500);
});
});//]]>
</script>