Is there a way to get the end value of an animation in jQuery?
Posted
by George Edison
on Stack Overflow
See other posts from Stack Overflow
or by George Edison
Published on 2010-04-21T21:23:17Z
Indexed on
2010/04/21
21:33 UTC
Read the original article
Hit count: 140
I have a script that animates an element as follows:
var item_height = $('#item').height();
$('#item').height(0);
$('#item').animate({ height: item_height });
Now suppose the animation needs to be stopped before it is complete:
$('#item').stop();
How can I get the end value of the animation? (The total height of the element when the animation would have been complete)
© Stack Overflow or respective owner