swipe 移动端轮播图

转自 https://blog.csdn.net/qq_31648761/article/details/78320898

下载链接:https://codeload.github.com/thebird/Swipe/zip/2.0.0,下载后解压,直接运行index.html文件,在浏览器的手机端访问模式,直接可以拖动轮播图片进行左右轮播

重写swipe.js文件中的stop方法

 function stop() {

    delay=options.auto > 0 ? options.auto : 0;
    clearTimeout(interval);

  }

原文链接:http://caibaojian.com/swipe.html

  • startSlide Integer (default:0) - 开始滚动的位置
  • speed Integer (default:300) - 动画滚动的间隔(秒数)
  • auto Integer - 开始自动幻灯片(以毫秒为单位幻灯片之间的时间)
  • continuous Boolean (default:true) - 创建一个无限的循环(当滑动到所有动画结束时是否循环滑动)
  • disableScroll Boolean (default:false) - 当滚动滚动条时是否停止幻灯片滚动
  • stopPropagation Boolean (default:false) - 是否停止事件冒泡
  • callback Function - 幻灯片运行中的回调函数
  • transitionEnd Function - 动画运行结束的回调函数
  • 来源:前端开发博客

猜你喜欢

转载自blog.csdn.net/czy279470138/article/details/84973829