swiper上下滑动缓慢过渡

先修改css

.swiper-container{width: 100%;height: 100%;}
.swiper-container-scrollbar .swiper-slide{
    height: auto;
}
.swiper-container-free-mode > .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;
  margin: 0 auto;
}

调整js

 

你可能感兴趣的:(web前端,H5,html5+css3)