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() slidingDemonstrates 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
Post a Comment