jQuery Methods: stop()
If the first argument is
true the animation queue will be cleared and the current animation will stop. If the first argument is
false (the default) or omitted, then the queued animations are not canceled.
If you pass
true as the second argument, the current CSS values of the current animation get set to their target values. If you pass
false as the second argument (the default) or omit it, the current CSS values of the current animation stay at their current values.
Here is an example: