Jquery Stop()

jQuery Stop Animations


The jQuery stop() method is used to destination animations or effects earlier it is finished.


Click to slide down/up the panel

Examples

jQuery stop() sliding
Demonstrates the jQuery stop() method.
jQuery stop() animation (with parameters)
Demonstrates the jQuery stop() method.

jQuery stop() Method

The jQuery stop() method is used to destination an animation or lawsuit earlier it is finished.
The stop() method industrial plant for all jQuery lawsuit functions, including sliding, fading in addition to custom animations.
Syntax:
$(selector).stop(stopAll,goToEnd);
The optional stopAll parameter specifies whether too the animation queue should endure cleared or not. Default is false, which way that alone the active animation volition endure stopped, allowing whatever queued animations to endure performed afterwards.
The optional goToEnd parameter specifies whether or non to consummate the electrical flow animation immediately. Default is false.
So, past times default, the stop() method kills the electrical flow animation beingness performed on the selected element.
The next lawsuit demonstrates the stop() method, amongst no parameters:

Example

$("#stop").click(function(){
    $("#panel").stop();
});


Comments

Popular posts from this blog

What Are The Main Components of a Computer System

Top Qualities To Look For In An IT Support Team

How To Integrate Google Adwords Api Into Codeigniter?