How to properly use the .animate() function -- top
Posted
by sadmicrowave
on Stack Overflow
See other posts from Stack Overflow
or by sadmicrowave
Published on 2010-04-26T13:30:49Z
Indexed on
2010/04/26
13:33 UTC
Read the original article
Hit count: 292
Is this the proper way to use the .animate(top) function?
Positive number (animate down)--
$("div#container div#history-menu").animate({top:'180px'}, 600);
Negative number (animate up)--
$("div#container div#history-menu").animate({top:'-180px'}, 600);
Because I'm getting a java error in my error console that says:
"error in parsing value for property 'top'. Declaration Dropped."
© Stack Overflow or respective owner