FullPage.js 笔记

2015-11-04  本文已影响190人  ddai_Q

前期工作


** 1、在页面引入 start **

css :
https://cdnjs.cloudflare.com/ajax/libs/fullPage.js/2.7.4/jquery.fullPage.min.css

js:
https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.0/jquery.js
https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery-easing.js
https://cdnjs.cloudflare.com/ajax/libs/�fullPage.js/2.6.7/jquery.fullPage.js

** 2、基本结构 **

 <div id="fullPage">
    <div class="section">something</div>
    <div class="section">something</div>
    <div class="section">something</div>
    <div class="section">something</div>
</div>

给一个 section页 添加slide(幻灯片)

<div class="section">
    <div class="slide">side1</div>
    <div class="slide">side2</div>
    <div class="slide">side3</div>
</div>

** 3、激活fullPage **

$(document).ready(function(){
    $('#fullPage').fullpage();
});

配置项


** 1、配置项 **

上一篇 下一篇

猜你喜欢

热点阅读