pagepiling是一个可以创建类似窗帘滚动网站的jQuery插件。兼容老的浏览器和触摸设备。您可以在原来的滚动的网站的基础上使用这个插件创建一个。
简单的调用示例
$('#pagepiling').pagepiling();
更复杂的选项
$('#pagepiling').pagePiling({
menu: null,
verticalCentered: true,
sectionsColor: [],
anchors: [],
scrollingSpeed: 700,
easing: 'swing',
loopBottom: false,
loopTop: false,
css3: true,
navigation: {
'textColor': '#000',
'bulletsColor': '#000',
'position': 'right',
'tooltips': ['section1', 'section2', 'section3', 'section4']
},
normalScrollElements: null,
normalScrollElementTouchThreshold: 5,
touchSensitivity: 5,
keyboardScrolling: true,
sectionSelector: '.section',
animateAnchor: false,
//events
onLeave: function(index, nextIndex, direction){},
afterLoad: function(anchorLink, index){},
afterRender: function(){},
});