jQuery EffectsLesson 11Free preview
jQuery stop()
This lesson is part of jQuery · All levels
Summary
The stop() method is used to stop animation running on an element. Without stop(), overlapping animations can make the moving elements uncontrollable when users interact quickly. The clearQueue parameter can be used to empty the next animation queue.
Key points
- Stop the animation running
- The first parameter empties the animation queue if it is worth true
- The second parameter determines whether the animation runs to the end
- Without it, stacked animation can make unexpected movements.
- It's useful to cancel all animation lines
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.