javascript - Getting Position in jQuery Animate -
javascript - Getting Position in jQuery Animate -
i animating 1 image(i.e)scaling image like
$('#img').animate({height:'300px','width':'20px'},2000);
i need current height of image during animation. tried step property. printing many points unrelated animation.
any idea
there's step alternative in animate function allows callbacks during animation. in callback can request position , want it.
http://jsfiddle.net/ayvue/
javascript jquery html css jquery-animate
Comments
Post a Comment