Share a pop-up flip effect code based on jQuery image. This is implemented based on jQuery HTML5, which contains six different mouse click picture pop-up effects for download. The rendering is as follows:
Introducing CSS and JS
<link href="css/expander.css" rel="stylesheet"> <link href="css/theme.css" rel="stylesheet"> <script src="js/jquery-latest.min.js" type="text/javascript"></script> <script src="js/expander.min.js"></script>
expander.min.js code
JS code:
<script> var index = 0; var timeout = setInterval(function () { if (index > 10) { window.clearInterval(timeout) } $("article").eq(index).addClass("show"); index++ }, 300); function showFoo() { $("#fooId").trigger("expand"); } $("#expandSettings").on("click", function () { if ($("ul.settings").hasClass("open")) { $("ul.settings").removeClass("open"); } else { $("ul.settings").addClass("open"); } }); </script>
HTML
<section class="main"> <article> <div class="imgContainer"> <h5>效果一</h5> <img src="images/chinaz.jpg" data-expander='{animation:"default"}'> </div> <div class="imgContainer"> <h5>效果二</h5> <img src="images/chinaz.jpg" data-expander='{animation:"diamond"}'> </div> <div class="imgContainer"> <h5>效果三</h5> <img src="images/chinaz.jpg" data-expander='{animation:"turn3d"}'> </div> <div class="imgContainer"> <h5>效果四</h5> <img src="images/chinaz.jpg" data-expander='{animation:"flip3d"}'> </div> <div class="imgContainer"> <h5>效果五</h5> <img src="images/chinaz.jpg" data-expander='{animation:"rotate"}'> </div> <div class="imgContainer"> <h5>效果六</h5> <img src="images/chinaz.jpg" data-expander='{animation:"fade"}'> </div> </article> </section>
The above is the entire content of this article, I hope you all like it.