This Angular tutorial helps you get started with Angular quickly and effectively through many practical examples.

jQuery Stop

jQuery Stop() Method

The stop() method is used to stop the current animation or effect being performed on the selected element before it is finished. Suppose you start a panel sliding up and down. You want to stop it before finishing sliding. In that case we use jQuery stop method. The stop() method works for all jQuery effect functions, including sliding, fading and custom animations.



  1. stopAll - stopAll parameter specifies whether also the animation queue should be cleared or not. Default is false, which means that only the active animation will be stopped
  2. goToEnd - The optional goToEnd parameter specifies whether or not to complete the current animation immediately. Default is false.

The following example demonstrates the stop() method.


<!DOCTYPE html>
<script src=""></script>
#flipid {
padding: 5px;
text-align: center;
background-color: red;
border: solid 1px green;

#panelid {
padding: 5px;
text-align: center;
background-color: green;
border: solid 1px green;

#panelid {
padding: 50px;
display: none;
<button id="stopid">Stop sliding</button>
<div id="flipid">Click to slide down</div>
<div id="panelid">!</div>



jquery Stop method

Now click on the Click to slide down. Now click on the Stop sliding before it is finished.

jquery Stop method
Prev Next