其他分享
首页 > 其他分享> > swiper实现匀速无缝滚动

swiper实现匀速无缝滚动

作者:互联网

设置属性

speed:2500,//匀速时间
autoplay: {
    delay: 0,
    stopOnLastSlide: false,
    disableOnInteraction: true,
},

样式需要添加

.swiper-container .swiper-wrapper{
    -webkit-transition-timing-function: linear; /*之前是ease-out*/
    -moz-transition-timing-function: linear;
    -ms-transition-timing-function: linear;
    -o-transition-timing-function: linear;
    transition-timing-function: linear;
}

 

标签:function,linear,transition,timing,匀速,swiper,无缝
来源: https://www.cnblogs.com/lhj-blog/p/11595872.html