Maison >interface Web >tutoriel HTML >基于html5+css3特效可配制图片幻灯片切换代码_html/css_WEB-ITnose
基于html5+css3图片幻灯片切换代码。这是一款基于jquery+html5+css3实现37种不同切换效果的幻灯片特效。效果图如下:
在线预览 源码下载
实现的代码。
html代码:
<div class="container"> <header class="codrops-header"> <nav class="codrops-demos"> <a class="current-demo" href="index.html">Small Component</a> <a href="index2.html">Full Width</a> <a href="index3.html">Transparent</a> </nav> </header> <section> <div class="custom-select"> <select id="fxselect" name="fxselect"> <option value="-1" selected>选择一种效果...</option> <option value="fxCorner">Corner scale</option> <option value="fxVScale">Vertical scale</option> <option value="fxFall">Fall</option> <option value="fxFPulse">Forward pulse</option> <option value="fxRPulse">Rotate pulse</option> <option value="fxHearbeat">Hearbeat</option> <option value="fxCoverflow">Coverflow</option> <option value="fxRotateSoftly">Rotate me softly</option> <option value="fxDeal">Deal 'em</option> <option value="fxFerris">Ferris wheel</option> <option value="fxShinkansen">Shinkansen</option> <option value="fxSnake">Snake</option> <option value="fxShuffle">Shuffle</option> <option value="fxPhotoBrowse">Photo Browse</option> <option value="fxSlideBehind">Slide Behind</option> <option value="fxVacuum">Vacuum</option> <option value="fxHurl">Hurl it</option> </select> </div> <div id="component" class="component component-small"> <ul class="itemwrap"> <li class="current"><img src="img/1.jpg" alt="img01" /></li> <li><img src="img/2.jpg" alt="img02" /></li> <li><img src="img/3.jpg" alt="img03" /></li> <li><img src="img/4.jpg" alt="img04" /></li> <li><img src="img/5.jpg" alt="img05" /></li> </ul> <nav> <a class="prev" href="#">Previous item</a> <a class="next" href="#">Next item</a> </nav> </div> </section> </div><!-- /container --> <script src="js/classie.js"></script> <script src="js/main.js"></script>
via:http://www.w2bc.com/article/2015-10-20-html5-css3-focus-change