学习笔记: js插件 —— fullPage.js (页面全屏滚动)
2024-10-13 12:47:51
fullPage.js (页面全屏滚动)
必须依赖 jquery-ui.min.js, 233K
14760个星。 以后有时间再看。 API挺全
https://github.com/alvarotrigo/fullPage.js 官网 英国 ,Álvaro开发的
http://www.uedsc.com/fullpage.html API 这页有广告,不过有中文说明,凑合看看吧。
http://www.dowebok.com/77.html
<script type="text/javascript" src="http://cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>
<script src="http://cdn.bootcss.com/jqueryui/1.11.1/jquery-ui.min.js"></script>
<link href="http://cdn.bootcss.com/fullPage.js/2.8.1/jquery.fullPage.min.css" rel="stylesheet">
<script src="http://cdn.bootcss.com/fullPage.js/2.8.1/jquery.fullPage.min.js"></script>
<!--
<link href="http://cdn.bootcss.com/fullPage.js/2.8.1/jquery.fullPage.css" rel="stylesheet">
<script src="http://cdn.bootcss.com/fullPage.js/2.8.1/jquery.fullPage.js"></script>
-->
<style>
.section {text-align:center;font:50px "Microsoft Yahei";color:#fff;}
</style>
<script>
$(function(){
$('#fullpage').fullpage({
sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE'],
anchors: ['firstPage', 'secondPage', '3rdPage'],
//menu: '#menu',
loopTop: true
//loopBottom: true
});
});
</script>
<div id="fullpage">
<div class="section " id="section0">
<h1>fullPage.js</h1>
<p>Looping Top and Bottom Enabled</p>
</div>
<div class="section" id="section1">
<h1>Looping!</h1>
<p>Go to the first section and scroll up or to the last one and scroll down to see how it works.</p>
</div>
<div class="section" id="section2">
<h1>Scroll Down</h1>
<p>And it will loop to the first section</p>
</div>
</div>
...
最新文章
- 基于pcDuino-V2的无线视频智能小车
- 调用WCF不需要添加服务引用,使用一个WCFHelper类就可以
- 在GridView隐藏字段
- 转载---linux运维相关
- BZOJ 2535 Plane 航空管制2
- 关于ios::sync_with_stdio(false)
- C#多线程之异步编程
- EventBus 3.0使用相关
- DB2 Rename SQL0108N错误
- 背水一战 Windows 10 (43) - C# 7.0 新特性
- SQL Server 数据库基础知识
- zabbix服务快速搭建指南
- day23<;File类递归练习>;
- C#和Java访问修饰符的比较
- adb not responding的解决方案
- jQuery Lightbox效果插件Boxer
- 适用于iOS6之后的苹果提供的下拉刷新
- 【C#】特性标签中的属性解释
- 重构指南 - 引入参数对象(Introduce Parameter Object)
- MSSQL grant权限
热门文章
- innobackupex per table
- Cygwin使用2-心得
- MQTT 3.1.1,值得升级的6个新特性
- windows服务命令 转载
- elixir环境配置
- vi快捷键使用大全
- [LeedCode]921. 使括号有效的最少添加
- 使用Selenium模拟浏览器抓取淘宝商品美食信息
- 【IIS错误 - HTTP 错误 500.19】HTTP 错误 500.19- Internal Server Error 错误解决方法(二)
- PAT 乙级 1049 数列的片段和(20) C++版