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

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

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