Files
DefinitelyTyped/types/fullpage.js/fullpage.js-tests.ts
2017-03-24 14:27:52 -07:00

63 lines
2.0 KiB
TypeScript

function test_public_methods() {
$(() => {
$('#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,
normalScrollElements: '#element1, .element2',
scrollOverflow: false,
scrollOverflowOptions: null,
touchSensitivity: 15,
normalScrollElementTouchThreshold: 5,
// 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,
// Custom selectors
sectionSelector: '.section',
slideSelector: '.slide',
// Events
onLeave: (index, nextIndex, direction) => {},
afterLoad: (anchorLink, index) => {},
afterRender: () => {},
afterResize: () => {},
afterSlideLoad: (anchorLink, index, slideAnchor, slideIndex) => {},
onSlideLeave: (anchorLink, index, slideIndex, direction, nextSlideIndex) => {}
});
});
}