Home >Web Front-end >JS Tutorial >jQuery animation effect-fadeIn fadeOut fade in and out sample code_jquery

jQuery animation effect-fadeIn fadeOut fade in and out sample code_jquery

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-16 17:24:041545browse
Copy code The code is as follows:



< ;meta charset="utf-8"/>


<script> <br>$(function(){ <br>$("h5.head").toggle(function(){ <br>$("div.content").fadeOut(3000); <br>},function(){ <br>$("div.content").fadeIn(3000); <br>}); <br>}) <br></script>
< /head>


What is jQuery?

< div class="content">
JQuery is another javascript library after prototype. With its simple code and perfect browser compatibility, coupled with powerful DOM operations and complete event processing mechanism, it is powerful Ajax operation greatly simplifies the work of JavaScript developers.




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
Previous article:jQuery's delegate_jquery thought of hiding divs by clicking elsewhere on the pageNext article:jQuery's delegate_jquery thought of hiding divs by clicking elsewhere on the page

Related articles

See more