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)