If you want to stop animation, medium animation and move it from the state of stop ped css to another, use, most importantly, stop(true, false) .
Bottom line: stop(true,false) "magically" stops the animation in its "tracks", but believes that css will be installed regardless of the parameters of the stopped css animation, so you can continue from this point without trying to guess or figure out how you should be animated from the point of the stop pen.
In other words, if you install css through
animate , but you
stop sharing it, the animated element will remain in any css
stop state, but the css settings that were entered in the
stop animation of the pedals will be the current css settings until it is changed.
This key. You do not need to guess where stop leaves the css state. You can continue as if your animation was complete.
This is a demonstration of the basics of this concept: http://jsfiddle.net/dYYZP/65/
Dropped the basic animation from here: The jQuery animation out of the way
Postscript
Due to the simplicity of animate , absolute positioning in relative , offset and stop(true,false) positioning, it rarely happens that I use any built-in animation. They are too clumsy and do not know what you really need. They are great for the most basic animations, but if you want your page to shine, these concepts above (which I can add very easily) should be used.
user1382306
source share