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

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -