In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-13 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces the relevant knowledge of "how to use the fadeout method in jquery". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
In jquery, the fadeout () method is used to gradually change the opacity of the selected element, hiding from visible; the element hidden by this method will not affect the layout of the page, and the parameters in the setting method can change the speed at which the element fades. The syntax is "element object .fadeOut (speed,easing, execute function)".
The operating environment of this tutorial: windows10 system, jquery3.2.1 version, Dell G3 computer.
How to use fadeout method in jquery
The fadeOut () method gradually changes the opacity of the selected element from visible hiding (fading effect).
Note: hidden elements are not fully displayed (no longer affect the layout of the page).
Tip: this method is usually used with the fadeIn () method.
Grammar
$(selector) .fadeOut (speed,easing,callback)
The parameters are expressed as follows:
Speed is optional. Specifies the speed of the fading effect. Possible values:
Millisecond
"slow"
"fast"
Easing is optional. Specifies the speed of the element at different points in the animation. The default is "swing". Possible values:
"swing"-move slowly at the beginning / end and fast in the middle
"linear"-moving at a uniform speed
Tip: more easing functions are available in the extension.
Callback is optional. The function to be executed after the fadeOut () method is executed.
Examples are as follows:
(document) .ready (function () {$(".btn1") .click (function () {$("p"). FadeOut ()}); fade out
This is a paragraph.
Output result:
This is the end of the content of "how to use the fadeout method in jquery". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.