Template:Team:Amsterdam/ernst/scripts
From 2012.igem.org
(Difference between revisions)
Line 54: | Line 54: | ||
$(" #submenu ul li").hover(function(){ | $(" #submenu ul li").hover(function(){ | ||
- | $(this).find('ul:first').animate({display:'block', height:' | + | $(this).find('ul:first').stop().animate({display:'block', height:'auto'},{queue:false, duration:400}); |
},function(){ | },function(){ | ||
- | $(this).find('ul:first').animate({height:'hide', display:'none'},{queue:false, duration:400}); | + | $(this).find('ul:first').stop().animate({height:'hide', display:'none'},{queue:false, duration:400}); |
}); | }); | ||
} | } |
Revision as of 13:59, 10 September 2012