Home > Web Front-end > JS Tutorial > jQuery sliding method slideDown slides the element downward_jquery

jQuery sliding method slideDown slides the element downward_jquery

WBOY
Release: 2016-05-16 17:03:21
Original
1225 people have browsed it

jQuery sliding methods

With jQuery, you can create sliding effects on elements.

jQuery has the following sliding methods:

slideDown() slides the element down
slideUp() slides the element up
slideToggle() is between the slideDown() and slideUp() methods switch between.

jQuery slideDown() method

jQuery slideDown() method is used to slide an element down.
Syntax:

$(selector).slideDown(speed,callback);

The optional speed parameter specifies the duration of the effect. It can take the following values: "slow", "fast", or milliseconds.

The optional callback parameter is the name of the function to be executed after the sliding is completed.

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