JQuery Common Method 2 (continuous update)

Source: Internet
Author: User
Tags button type

5.fadeIn () FadeOut () Fadetoggle () FadeTo ()

FadeIn (): Used to fade in a hidden element.

FadeOut (): method is used to fade out visible elements.

Fadetoggle (): Method can be toggled between FadeIn () and FadeOut () methods.

If the element has faded out, fadetoggle () adds a fade effect to the element.

If the element has been faded in, fadetoggle () adds a fade effect to the element.

FadeTo (): method allows the gradient to a given opacity (values between 0 and 1).

The point: In doing these several methods, I think of another pair of methods hide () show (). Hide the hidden content can be "fade in", "fade" content can be "fade in." For convenience, I took the Fadetoggle method and the show,hide to carry on the experiment. found that they can interact with each other! I'm a little excited about this discovery, and I'm enclosing the test code:

<! DOCTYPE html>

  

JQuery Common Method 2 (continuous update)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.