Swiper 滚动插件

0F]CMHS)(BU]VFW8_RH25~H

此插件用于设置内容滚动,支持手机,鼠标滚动,四方向滚动,支持滚动条样式,支持CSS3动画和DOM动画;

详细文档地址:
http://www.idangero.us/sliders/swiper/api.php

 


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
})

Leave a Comment

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据