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
WBOYOriginal
2016-05-16 17:03:211230browse

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.

Statement:
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