Home › Forums › JavaScript › Can someone help with my menu animation? › Re: Can someone help with my menu animation?
December 25, 2009 at 2:45 am
#68657
Participant
I figured this one out. But yes, you should have your code in a list. that would be the propper way to do it.
change the top to bottom, you can also thin your code. When writing a mouseover, mouseout..You can do it this way
Code:
$(document).ready(function() {
$(‘a.menu’).mouseover(function() {
$(this).stop().animate({ “bottom” : “30px” });
}).mouseout(function() {
$(this).stop().animate({ “bottom” : “0px” });
});
});
$(‘a.menu’).mouseover(function() {
$(this).stop().animate({ “bottom” : “30px” });
}).mouseout(function() {
$(this).stop().animate({ “bottom” : “0px” });
});
});