swiper制作手机3D相册左右图片手指滑动效果



177 706 236



特效描述:swiper制作 手机3D相册 左右图片 手指滑动效果,HTML5 css3 制作3D相册左右无限循环效果,swiper.js制作手机端3D相册,通过触屏滑动图片切换效果。

代码结构

1. 引入CSS

<link rel="stylesheet" type="text/css" href="css/swiper.min.css">

2. 引入JS

<script src="js/swiper.min.js"></script>

3. HTML代码

    <header class="mui-bar mui-bar-nav aui-header b-line">
        <h1 class="mui-title">明星社区</h1>
    </header>
    <div class="mui-title-text">
        <p>绿色公益 权威发布</p>
    </div>
    <div class="swiper-container">
        <div class="swiper-wrapper">
            <div class="swiper-slide" style="background-image:url(img/1.jpg)">
                <a href="#" target="_blank">
                    <h1>周杰伦</h1>
                </a>
            </div>
            <div class="swiper-slide" style="background-image:url(img/2.jpg)">
                <a href="#" target="b">
                    <h1>潘玮柏</h1>
                </a>
            </div>
            <div class="swiper-slide" style="background-image:url(img/3.jpg)">
                <a href="#">
                    <h1>林俊杰</h1>
                </a>
            </div>
            <div class="swiper-slide" style="background-image:url(img/4.jpg)">
                <a href="#">
                    <h1>王力宏</h1>
                </a>
            </div>
            <div class="swiper-slide" style="background-image:url(img/5.jpg)">
                <a href="#">
                    <h1>张信哲</h1>
                </a>
            </div>
            <div class="swiper-slide" style="background-image:url(img/6.jpg)">
                <a href="#">
                    <h1>陈奕迅</h1>
                </a>
            </div>
            <div class="swiper-slide" style="background-image:url(img/7.jpg)">
                <a href="#">
                    <h1>吴克群</h1>
                </a>
            </div>
            <div class="swiper-slide" style="background-image:url(img/8.jpg)">
                <a href="#">
                    <h1>薛之谦</h1>
                </a>
            </div>
            <div class="swiper-slide" style="background-image:url(img/9.jpg)">
                <a href="#">
                    <h1>陈楚生</h1>
                </a>
            </div>
            <div class="swiper-slide" style="background-image:url(img/10.jpg)">
                <a href="#">
                    <h1>筷子兄弟</h1>
                </a>
            </div>
            <div class="swiper-slide" style="background-image:url(img/20.jpg)">
                <a href="#">
                    <h1>范冰冰</h1>
                </a>
            </div>
            <div class="swiper-slide" style="background-image:url(img/21.jpg)">
                <a href="#">
                    <h1>刘诗诗</h1>
                </a>
            </div>
            <div class="swiper-slide" style="background-image:url(img/22.jpg)">
                <a href="#">
                    <h1>唐嫣</h1>
                </a>
            </div>
        </div>
    </div>
    <div class="mui-sou box-line"><img src="img/sou.png" alt=""></div>
    <nav class="mui-bar mui-bar-tab">
        <div class="t-line">
            <a href="#" class="aui-tab-item ">
                <span class="mui-icon mui-icon-home"></span>
                <span class="mui-tab-label">首页</span>
            </a>
            <a href="#" class="aui-tab-item mui-active">
                <span class="mui-icon mui-icon-extra mui-icon-extra-class"></span>
                <span class="mui-tab-label">明星社区</span>
            </a>
            <a class="aui-tab-item" href="#">
                <span class="mui-icon mui-icon-extra mui-icon-extra-cart"></span>
                <span class="mui-tab-label">绿色商城</span>
            </a>
            <a class="aui-tab-item" href="#">
                <span class="mui-icon mui-icon-extra mui-icon-extra-news"></span>
                <span class="mui-tab-label">消息</span>
            </a>
            <a class="aui-tab-item" href="#">
                <span class="mui-icon mui-icon-extra mui-icon-extra-people"></span>
                <span class="mui-tab-label">我的</span>
            </a>
        </div>
    </nav>
    <script src="js/swiper.min.js"></script>
    <script type="text/javascript">
        var swiper = new Swiper('.swiper-container', {
            pagination: '.swiper-pagination',
            effect: 'coverflow',
            grabCursor: true,
            centeredSlides: true,
            slidesPerView: 'auto',
            loop: true,
            initialSlide:6,
            coverflow: {
                rotate: 50,
                stretch: 100,
                depth: 400,
                modifier: 1,
                slideShadows : true
            }
        });
    </script>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 图片拖动 图片放大镜 图片叠加 图片翻转旋转 图片延迟加载 图片淡出淡进 图片全屏 图片头像上传 二维码 滚动切换 滑动选项卡切换 图片广告 图片放大缩小 html5图片动画 带缩略图的幻灯片 地图 图片滚动 图片滑动 图片切换 图片收缩展开 旋转木马 图片轮播 自动滚动图片轮播 图标导航菜单 叠加浮动层 选项卡切换 滑动手风琴 背景切换 手风琴 层叠叠加 图表 图片 头像截图 图片叠加 图片相册 图片切换

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到