码迷,mamicode.com
首页 > Web开发 > 详细

基于HTML5 SVG全屏滑块切换特效

时间:2015-09-10 10:54:53      阅读:187      评论:0      收藏:0      [点我收藏+]

标签:

基于HTML5 SVG全屏滑块切换特效是一款基于jQuery+HTML5实现的全屏动画切换特效代码。效果图如下:

技术分享

在线预览    源码下载

实现的代码。

html代码:

<section class="cd-slider-wrapper">
        <ul class="cd-slider">
            <li class="visible">
                <div style=" position:fixed; z-index:9999999999; width:100%; top:30px;">
                    <script src="http://www.w2bc.com/scripts/2bc/_gg_980_90.js" type="text/javascript"></script>
                </div>
                <div> <h2>爱编程w2bc.com</h2></div>
            </li>

            <li>
                <div> <h2>爱编程w2bc.com</h2></div>
            </li>
            <li>
                <div> <h2>爱编程w2bc.com</h2></div>
            </li>
            <li>
                <div> <h2>爱编程w2bc.com</h2></div>
            </li>
        </ul> <!-- .cd-slider -->
        <ol class="cd-slider-navigation">
            <li class="selected"><a href="#0"><em>Item 1</em></a></li>
            <li><a href="#0"><em>Item 2</em></a></li>
            <li><a href="#0"><em>Item 3</em></a></li>
            <li><a href="#0"><em>Item 4</em></a></li>
        </ol> <!-- .cd-slider-navigation -->
        <div class="cd-svg-cover" data-step1="M1402,800h-2V0.6c0-0.3,0-0.3,0-0.6h2v294V800z" data-step2="M1400,800H383L770.7,0.6c0.2-0.3,0.5-0.6,0.9-0.6H1400v294V800z" data-step3="M1400,800H0V0.6C0,0.4,0,0.3,0,0h1400v294V800z" data-step4="M615,800H0V0.6C0,0.4,0,0.3,0,0h615L393,312L615,800z" data-step5="M0,800h-2V0.6C-2,0.4-2,0.3-2,0h2v312V800z" data-step6="M-2,800h2L0,0.6C0,0.3,0,0.3,0,0l-2,0v294V800z" data-step7="M0,800h1017L629.3,0.6c-0.2-0.3-0.5-0.6-0.9-0.6L0,0l0,294L0,800z" data-step8="M0,800h1400V0.6c0-0.2,0-0.3,0-0.6L0,0l0,294L0,800z" data-step9="M785,800h615V0.6c0-0.2,0-0.3,0-0.6L785,0l222,312L785,800z" data-step10="M1400,800h2V0.6c0-0.2,0-0.3,0-0.6l-2,0v312V800z">
            <svg height=‘100%‘ width="100%" preserveAspectRatio="none" viewBox="0 0 1400 800">
                <title>SVG cover layer</title>
                <desc>an animated layer to switch from one slide to the next one</desc>
                <path id="cd-changing-path" d="M1402,800h-2V0.6c0-0.3,0-0.3,0-0.6h2v294V800z" />
            </svg>
        </div> <!-- .cd-svg-cover -->
    </section> <!-- .cd-slider-wrapper -->

via:http://www.w2bc.com/article/61953

基于HTML5 SVG全屏滑块切换特效

标签:

原文地址:http://www.cnblogs.com/w2bc/p/4796807.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!