Swiper

var swiper = new Swiper('.swiper-container', {

                    pagination:'.swiper-pagination',

                    nextButton:'.swiper-button-next',

                    prevButton:'.swiper-button-prev',

                    // direction: 'vertical',//竖向播放

                    //切换效果 fade淡入淡出 cube立方体旋转 coverflow分页  flip翻转

                     effect :'flip',

                    // slidesPerView: 3,

                    // centeredSlides: true,//配合coverflow使用


                     paginationClickable:true,//分页器 点击

                    autoplay:1000,//自动播放延迟时间

                    spaceBetween:0,//side之间的间距

                   centeredSlides:true,//活动块居中

                    loop :true,//实现无限轮播

                    autoplayDisableOnInteraction:false //点击后打断autoplay

});

你可能感兴趣的:(Swiper)