Created
April 7, 2018 22:13
-
-
Save rayinla/25790352a354c153e0f59c7cbf8490f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
$('#fullpage').fullpage({ | |
//Navigation | |
menu: '#menu', | |
lockAnchors: false, | |
anchors:['firstPage', 'secondPage'], | |
navigation: false, | |
navigationPosition: 'right', | |
navigationTooltips: ['firstSlide', 'secondSlide'], | |
showActiveTooltip: false, | |
slidesNavigation: false, | |
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, | |
//These effects are hidden behind a pay wall, unfortunately. | |
continuousVertical: false, | |
continuousHorizontal: false, | |
scrollHorizontally: false, | |
interlockedSlides: false, | |
dragAndMove: false, | |
offsetSections: false, | |
resetSliders: false, | |
fadingEffect: false, | |
normalScrollElements: '#element1, .element2', | |
scrollOverflow: false, | |
scrollOverflowReset: false, | |
scrollOverflowOptions: null, | |
touchSensitivity: 15, | |
normalScrollElementTouchThreshold: 5, | |
bigSectionsDestination: null, | |
//Accessibility | |
keyboardScrolling: true, | |
animateAnchor: true, | |
recordHistory: true, | |
parallax: false, | |
parallaxOptions: {type: 'reveal', percentage: 62, property: 'translate'}, | |
//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){} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment