出色的html滑动效果库 swiper -例子4 超长单栏横向滑动
来源:互联网 发布:淘宝账号名称怎么修改 编辑:程序博客网 时间:2024/06/18 09:47
可以用于div滑动,图片滑动等切换
例子代码以及所需资源:http://download.csdn.net/detail/feisy/6638105
例子代码以及所需资源:http://download.csdn.net/detail/feisy/6638105
官网例子:使用iframe来在同一个页面里面加入了很多各种不同的演示 http://www.idangero.us/sliders/swiper/demos.php
<!doctype html><html lang="en"><head> <meta charset="UTF-8"> <title>Demo</title> <link rel="stylesheet" href="css/idangerous.swiper.css"> <link rel="stylesheet" href="css/idangerous.swiper.scrollbar.css"> <style>/* Demo Styles */body { margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.5;}.swiper-container { width: 640px; height: 300px; text-align: center;}.swiper-slide { width: 1520px; padding: 20px; background: #fff;}.red-slide { background: #ca4040;}.blue-slide { background: #4390ee;}.orange-slide { background: #ff8604;}.green-slide { background: #49a430;}.pink-slide { background: #973e76;}.swiper-scrollbar { width: 100%; height: 4px; position: absolute; left: 0; bottom: 5px; z-index: 1;} </style></head><body> <div class="swiper-container"> <div class="swiper-scrollbar"></div> <div class="swiper-wrapper"> <div class="swiper-slide"> <div class="red-slide" style="width:250px; float:left; font-size:25px; line-height:30px; text-align:center"> <p style="color:#fff; font-weight:bold; font-style:italic;">Your dreams come true:) That is a simple single scrollable area! No slides, no nothing, just pure area!</p> </div> <div style="width:300px; float:left; margin-left:20px"> <p>Here goes some text</p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam dictum ipsum auctor nulla consectetur sed porta nunc placerat.</p> <p>Nulla dui augue, sollicitudin egestas consequat a, consequat quis neque. Sed at mauris nunc. Donec rutrum leo id risus congue convallis. Maecenas ultrices condimentum velit, nec tincidunt lorem convallis consequat. Nulla elementum consequat quam eu euismod</p> </div> <div style="width:500px; float:left; margin-left:20px"> <p>Here goes wide image</p> <p><img src="img/bb.jpg"></p> </div> <div class="blue-slide" style="width:350px; float:left; font-size:28px; line-height:30px; text-align:center; margin-left:20px; padding:25px"> <p style="color:#fff; font-weight:bold; font-style:italic;">You can make it any width/height, horizontal (like this one) or vertical, with any styling and with any HTML content!</p> </div> </div> </div> </div> <script src="js/jquery-1.10.1.min.js"></script> <script src="js/idangerous.swiper-2.1.min.js"></script> <script src="js/idangerous.swiper.scrollbar-2.1.js"></script> <script> var mySwiper = new Swiper('.swiper-container',{ scrollContainer: true, scrollbar: { container: '.swiper-scrollbar' } }) </script></body></html>
- 出色的html滑动效果库 swiper -例子4 超长单栏横向滑动
- 出色的html滑动效果库 swiper -例子5 横向自由滑动 可以滑动部分
- 出色的html滑动效果库 swiper -例子1 横向滑动,结束自动切换回第一栏
- 出色的html滑动效果库 swiper -例子3 横向滑动 需要滑动一段距离才会切换 并且可以动态增删栏目
- 出色的html滑动效果库 swiper -例子2 竖直滑动,不会自动切换会第一栏
- 使用swiper写的m站横向滑动效果
- Javascript滑动效果利器--Swiper
- Swiper实现带两侧带遮罩层的滑动效果
- Android 实现横向滑动效果
- 顶部横向滑动菜单效果
- 图片的横向滑动
- 横向滑动的 ScrollView
- 横向滑动的 ListView
- 横向滑动的GridView
- 横向滑动的listview
- 横向滑动的Recycleview
- 横向滑动的ListView
- 横向滑动的注意事项
- 开博说明
- 出色的html滑动效果库 swiper -例子3 横向滑动 需要滑动一段距离才会切换 并且可以动态增删栏目
- 转载
- R绘制动态曲线
- TranslateAnimation详解
- 出色的html滑动效果库 swiper -例子4 超长单栏横向滑动
- SQL Server 2008通过DBCC OPENTRAN和会话查询事务详解
- 一个简单的字符驱动
- printf() VC、TC从右向左 求值 and sequence point(顺序点)
- 出色的html滑动效果库 swiper -例子5 横向自由滑动 可以滑动部分
- 函数模板的基本使用
- 那些不能错过的Xcode插件
- 设备驱动--自动创建节点
- 实现rotate的几种算法