On Feb 27, 2007, at 0:45 , David wrote:
I'm trying to understand how the animate function works, but I'm
not finding the documentation very helpful. As an example I would
like to move one div to the right 100 pixels. I thought that the
following code might do it but I get no movement whatsoever.
$("#myDiv").animate({right: 100}, "slow");
In addition to the comments already given, you will want to change
"right" to "left" here. To move an item to the *right*, you need to
change its distance from the *left* side of the enclosing element.
--
Jonathan Chaffer
Technology Officer, Structure Interactive
(616) 364-7423 http://www.structureinteractive.com/
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/