The jQuery stop() method in jQuery is used to stop animations or effects before it is finished.
This method works on all type of animation like sliding, fading, and custom animations.
Example-1: Stop sliding animation.
Before clicking on the GeeksForGeeks:
After clicking on the GeeksForGeeks and not clicking on Button:
After clicking on the GeeksForGeeks and click on Button:
Example-2: Stop sliding from left to right.
Before clicking on the Start:
After clicking on the Start and not clicking on Stop:
After clicking on the Start and clicking on Stop:
- How to run two animations simultaneously in jQuery ?
- jQuery | stop() with Examples
- CSS | Animations
- AngularJS | Animations
- Android Animations in Kotlin
- p5.js | stop() Function
- CSS | Scroll Snap stop
- HTML | DOM Window stop() Method
- HTML | Marquee stop Method
- jQuery | jQuery.fx.interval Property with example
- jQuery | jQuery.support Property
- jQuery | jQuery.fx.off Property
- jQuery | jquery Property
- jQuery | innerWidth() with Example
- How to get the value of a textarea in jQuery ?
- jQuery UI | Button
- jQuery | finish() with Example
- jQuery | get() Method
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.