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

WBOY
Release: 2016-05-16 17:24:04
Original
1504 people have browsed it
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.




Related labels:
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template