jQuery全屏滾動外掛程式fullPage.js

來源:互聯網
上載者:User

標籤:vendor   function   github   javascrip   sde   bottom   class   foo   demo   

github

https://github.com/alvarotrigo/fullPage.js

demo

http://alvarotrigo.com/fullPage/

 

腳手架

<link rel="stylesheet" type="text/css" href="jquery.fullPage.css" /><script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script><!-- This following line is optional. Only necessary if you use the option css3:false and you want to use other easing effects rather than "linear", "swing" or "easeInOutCubic". --><script src="vendors/jquery.easings.min.js"></script><!-- This following line is only necessary in the case of using the plugin option `scrollOverflow:true` --><script type="text/javascript" src="vendors/scrolloverflow.min.js"></script><script type="text/javascript" src="jquery.fullPage.js"></script>

 

所有參數demo

$(document).ready(function() {    $(‘#fullpage‘).fullpage({        //Navigation        menu: ‘#menu‘,        lockAnchors: false,        anchors:[‘firstPage‘, ‘secondPage‘],        navigation: false,        navigationPosition: ‘right‘,        navigationTooltips: [‘firstSlide‘, ‘secondSlide‘],        showActiveTooltip: false,        slidesNavigation: true,        slidesNavPosition: ‘bottom‘,        //Scrolling        css3: true,        scrollingSpeed: 700,        autoScrolling: true,        fitToSection: true,        fitToSectionDelay: 1000,        scrollBar: false,        easing: ‘easeInOutCubic‘,        easingcss3: ‘ease‘,        loopBottom: false,        loopTop: false,        loopHorizontal: true,        continuousVertical: false,        continuousHorizontal: false,        scrollHorizontally: false,        interlockedSlides: false,        dragAndMove: false,        offsetSections: false,        resetSliders: false,        fadingEffect: false,        normalScrollElements: ‘#element1, .element2‘,        scrollOverflow: false,        scrollOverflowOptions: null,        touchSensitivity: 15,        normalScrollElementTouchThreshold: 5,        bigSectionsDestination: null,        //Accessibility        keyboardScrolling: true,        animateAnchor: true,        recordHistory: true,        //Design        controlArrows: true,        verticalCentered: true,        sectionsColor : [‘#ccc‘, ‘#fff‘],        paddingTop: ‘3em‘,        paddingBottom: ‘10px‘,        fixedElements: ‘#header, .footer‘,        responsiveWidth: 0,        responsiveHeight: 0,        responsiveSlides: false,        //Custom selectors        sectionSelector: ‘.section‘,        slideSelector: ‘.slide‘,        lazyLoading: true,        //events        onLeave: function(index, nextIndex, direction){},        afterLoad: function(anchorLink, index){},        afterRender: function(){},        afterResize: function(){},        afterResponsive: function(isResponsive){},        afterSlideLoad: function(anchorLink, index, slideAnchor, slideIndex){},        onSlideLeave: function(anchorLink, index, slideIndex, direction, nextSlideIndex){}    });});

 

jQuery全屏滾動外掛程式fullPage.js

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.