Home > Article > Web Front-end > What does slow mean in jquery
Slow in jquery means "slow". The slow attribute value is used to control the animation speed of jquery animation effects. When the parameter value is set to "slow", the element will slowly change during the animation process. Attributes, the syntax is "element object.element animation method ("slow")".
The operating environment of this tutorial: windows10 system, jquery3.2.1 version, Dell G3 computer.
What does slow mean in jquery
Slow means slow and is used to control the speed of jquery animation actions.
For example, the syntax of the show method is as follows:
$(selector).show(speed,callback)
where speed represents the display speed of the element. When the speed parameter of the element is set to slow, the display speed of the element is will become slow.
The example is as follows:
<html> <head> <script type="text/javascript" src="/jquery/jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ $(".btn1").click(function(){ $("p").hide(); }); $(".btn2").click(function(){ $("p").show("slow"); }); }); </script> </head> <body> <p>This is a paragraph.</p> <button class="btn1">Hide</button> <button class="btn2">Show</button> </body> </html>
Output result:
Related video tutorial recommendation: jQuery video tutorial
The above is the detailed content of What does slow mean in jquery. For more information, please follow other related articles on the PHP Chinese website!