此插件用于设置内容滚动,支持手机,鼠标滚动,四方向滚动,支持滚动条样式,支持CSS3动画和DOM动画;
详细文档地址: http://www.idangero.us/sliders/swiper/api.php
代码语言:javascript复制var mySwiper = new Swiper('.swiper-container', {
//scrollContainer:true,
eventTarget: 'container',
mousewheelControl: true,
mousewheelControlForceToAxis: true,
calculateHeight: true,
//useCSS3Transforms:false,
//DOMAnimation:true,
mode: 'vertical',
speed: 300, //Set animation duration to 500ms
resizeReInit: true,
visibilityFullFit: true,
cssWidthAndHeight: true,
freeModeFluid: true
})