I am animating an image's height. Afterwards, I want to know the image's width. The following code gives the image's width prior to the animation.
function growBigger(element) { var myWidth = $(element) .find("img") .animate({ height: curImgHeight },{queue:false, duration: 500 },calcWidth()).animate({marginTop:"0"}).width(); alert (myWidth); }; Even if I create a calcWidth() function, and use it as a callback in one of the animations, I still get the width *before* the animation occurred. Any way to solve this? I suppose I could calculate it using proportions, but it's still mysterious to me why I can't grab the post- animation width. Thanks!