views:

49

answers:

1

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."

A: 

Changing the values from ({top: '-180px'}, 600) to ({top: '-=180'}, 600) or ({top:'+=180'},600) seems to eliminate my problem.

sadmicrowave