jQuery Animate width to the left and up

Posted by efru on Stack Overflow See other posts from Stack Overflow or by efru
Published on 2011-01-11T03:51:45Z Indexed on 2011/01/11 4:54 UTC
Read the original article Hit count: 371

Filed under:
|
|

Hi all-

I'm trying to animate an image's width and height properties. Currently the image (as expected) animates to the right and down, however I'd like for the animation to occur to the left and upwards. Here's my current code :

http://jsfiddle.net/7UbYy/

I've read a few other posts on this subject which all refer to setting a marginLeft or left property but I can't seem to get the desired effect. I need the image to animate to the left and upwards while remaining in place. Let me know if this is possible...I can't seem to think of a way to do it right now..

Thanks in advance. Appreciate it.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about animate