Is it necessary to stop an animation, before animating the element again? For example, I am resizing an element from size [200, 200] to [800,800]. Half way between the animation, I want to resize the same element to [600,600] instead of [800,800].
- Should I use
.stop()to stop the animation before using the.animate()function on the same element? - If I do not stop the current animation, will jQuery complete the first animation before executing the second one?
When I call animate(), jQuery automatically adds overflow:hidden; to the element style, and resets the value when the animation gets completed. But if I call .stop() before the animation is over, the property is not reset to its original value.