jQuery滚动轮播插件onepage-scroll
来源:互联网 发布:oracle.sql.blob 编辑:程序博客网 时间:2024/05/16 15:12
html中代码:
<link rel="stylesheet" href="css/onepage-scroll.css" /><style>
.page1 { background-color: #1bbc9b;}
.page2 { background-color: #FF7F50;}
.page3 { background-color: #4BBFC3;}
.page4 { background-color: #f90;}
p.title { position: relative; top: 35%; font: 700 40px "Microsoft Yahei"; color: #fff; text-align: center;}
</style>
<script src="js/jquery-1.9.0.min.js"></script>
<script src="js/jquery.onepage-scroll.min.js"></script>
<script>
$(function(){
$('.main').onepage_scroll({
sectionContainer: '.page'
});
});
</script>
</head>
<body>
<div class="main">
<div class="page page1">
<p class="title">第一屏</p>
</div>
<div class="page page2">
<p class="title">第二屏</p>
</div>
<div class="page page3">
<p class="title">第三屏</p>
</div>
<div class="page page4">
<p class="title">第四屏</p>
</div>
</div>
</body>
onpage-scroll.css:
body, html {
margin: 0;
overflow: hidden;
-webkit-transition: opacity 400ms;
-moz-transition: opacity 400ms;
transition: opacity 400ms;
}
body, .onepage-wrapper, html {
display: block;
position: static;
padding: 0;
width: 100%;
height: 100%;
}
.onepage-wrapper {
width: 100%;
height: 100%;
display: block;
position: relative;
padding: 0;
-webkit-transform-style: preserve-3d;
}
.onepage-wrapper .section {
width: 100%;
height: 100%;
}
.onepage-pagination {
position: absolute;
right: 10px;
top: 50%;
z-index: 5;
list-style: none;
margin: 0;
padding: 0;
}
.onepage-pagination li {
padding: 0;
text-align: center;
}
.onepage-pagination li a{
padding: 10px;
width: 4px;
height: 4px;
display: block;
}
.onepage-pagination li a:before{
content: '';
position: absolute;
width: 4px;
height: 4px;
background: rgba(0,0,0,0.85);
border-radius: 10px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
}
.onepage-pagination li a.active:before{
width: 10px;
height: 10px;
background: none;
border: 1px solid black;
margin-top: -4px;
left: 8px;
}
.disabled-onepage-scroll, .disabled-onepage-scroll .wrapper {
overflow: auto;
}
.disabled-onepage-scroll .onepage-wrapper .section {
position: relative !important;
top: auto !important;
left: auto !important;
}
.disabled-onepage-scroll .onepage-wrapper {
-webkit-transform: none !important;
-moz-transform: none !important;
transform: none !important;
-ms-transform: none !important;
min-height: 100%;
}
.disabled-onepage-scroll .onepage-pagination {
display: none;
}
body.disabled-onepage-scroll, .disabled-onepage-scroll .onepage-wrapper, html {
position: inherit;
}
效果如下:
- jQuery滚动轮播插件onepage-scroll
- jquery滚动轮播
- H5滚动轮播插件
- jquery.onepage-scroll.js
- Jquery图片滚动轮播插件(一个不用你写CSS的轮播插件)
- 前端插件之滚动轮播
- onepage-scroll – jQuery单页/全屏滚动插件
- JQuery 图片滚动轮播的雏形
- jquery缩略图 大图滚动轮播
- 上下滚动轮播
- 上下滚动轮播
- html滚动轮播实现
- 上下滚动轮播条
- 向左的滚动轮播
- UIDatePickerView实现时间滚动轮播效果
- 自动滚动轮播循环的ViewPager
- js连续滚动轮播原理
- 文本上下滚动轮播效果
- 谈ISO9000-3内容及其与CMM关系
- 洗车人家汽车美容加盟帮你实现创业梦想
- Unity3D 场景导出成 XML或JSON 并解析还原场景
- XMind快捷键汇总
- sqoop安装,使用流程
- jQuery滚动轮播插件onepage-scroll
- NGUI中的UIInput输入定制光标
- 比较好玩的面试题
- Linux监控系统linux-dash安装和使用小结
- codeforces#36E Two Paths DFS
- 关于从插入到数据库里面的简体中文乱码的问题
- 关于WebGIS的开源解决方案的探讨
- 把Java数组转换为List时的注意事项
- 简单说明日志文件系统的作用