Home > Web Front-end > JS Tutorial > What does slow mean in jquery

What does slow mean in jquery

WBOY
Release: 2021-12-29 11:00:35
Original
2452 people have browsed it

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")".

What does slow mean in jquery

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)
Copy after login

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>
Copy after login

Output result:

What does slow mean in jquery

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template