View Single Post
Old 11-26-2012, 10:06 AM   PM User | #2
SB65
Senior Coder

 
Join Date: Feb 2009
Location: West Yorkshire
Posts: 2,827
Thanks: 9
Thanked 685 Times in 679 Posts
SB65 will become famous soon enoughSB65 will become famous soon enough
Seems like you just need to animate the margin-top as well as the height of the elements. Something like:

Code:
    <script type="text/javascript">
$(document).ready(function(){  
  
    //When mouse rolls over  
    $("li").mouseover(function(){  
        $(this).stop().animate({height:'150px',marginTop:'-100px'},{queue:false, duration:200, easing: 'easeOutBounce'})  
    });  
  
    //When mouse is removed  
    $("li").mouseout(function(){  
        $(this).stop().animate({height:'50px',marginTop:0},{queue:false, duration:200, easing: 'easeOutBounce'})  
    });  
  
});	</script>
You might need to give your menu a bit more space at the top to fit it in.
SB65 is online now   Reply With Quote