fullpage插件的使用
来源:互联网 发布:网络推广都做些什么 编辑:程序博客网 时间:2024/04/30 10:52
1、引用文件
[html] view plaincopyprint?
<link rel="stylesheet" href="css/jquery.fullPage.css">
<script src="js/jquery.min.js"></script>
<script src="js/jquery-ui.min.js"></script>
<script src="js/jquery.fullPage.js"></script>
2、html部分
[html] view plaincopyprint?
<div class="section">第一屏</div>
<div class="section">第二屏</div>
<div class="section">
<div class="slide">第三屏的第一屏</div>
<div class="slide">第三屏的第二屏</div>
<div class="slide">第三屏的第三屏</div>
<div class="slide">第三屏的第四屏</div>
</div>
<div class="section">第四屏</div>
3、使用方法
[javascript] view plaincopyprint?
$(document).ready(function() {
$.fn.fullpage({
slidesColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', '#f90'],
anchors: ['page1', 'page2', 'page3', 'page4']
});
});
4、详细options参数
无normalScrollElements
无afterLoad函数滚动到某一屏后的回调函数,接收 anchorLink 和 index 两个参数,anchorLink 是锚链接的名称,index 是序号,从1开始计算无onLeave函数滚动前的回调函数,接收 index 和 direction 两个参数,index 是序号,从1开始计算,direction 判断往上滚动还是往下滚动无afterRender函数页面结构生成后的回调函数,或者说页面初始化完成后的回调函数无afterSlideLoad函数滚动到某一水平滑块后的回调函数,与 afterLoad 类似,接收 anchorLink、index、slideIndex、direction 4个参数无onSlideLeave函数某一水平滑块滚动前的回调函数,与 onLeave 类似,接收 anchorLink、index、slideIndex、direction 4个参数无
- fullpage插件的使用
- fullpage.js 插件的使用
- fullpage插件的基本使用
- 全屏滚动插件FullPage的使用
- 利用fullpage全屏滚动插件的使用
- fullpage插件使用笔记
- fullpage(jQuery全屏滚动插件)插件的使用
- 全屏轮播插件fullpage.js的使用
- fullpage框架的使用
- fullPage.js插件的应用
- fullPage.js插件使用(一)
- jquery插件fullPage.js的用法
- 解决wow插件 与fullpage插件的冲突
- fullpage.js插件使用——菜单绑定
- 手机整屏滑动插件-----fullPage.js------使用
- Fullpage 插件配置项
- jq.fullpage插件
- fullpage全屏插件简介
- MySQL安装【CentOS】
- 第七周 项目二-建立链队算法库
- Android中JNI使用基本步骤
- python---格式化字符
- 边框border属性总结
- fullpage插件的使用
- iOS:GIF图片的预览以及生成
- Unable to decode stream: java.io.FileNotFoundException: 虎头:
- Mac 批量删除 .svn 文件
- 2016腾讯北京安全技术岗一面总结
- AngularJs 失去焦点事件
- 原来是传说中的2038问题
- Linux系统C语言读写文件总结 (一)
- 创建和管理表空间