zoukankan      html  css  js  c++  java
  • Swiper之滑块3

    上章Swiper滑块2、Swiper滑块1都是手动的,这章我们来自动的!

    其实只是加了Swiper的speed(滑动速度即slider自动滑动开始到结束的时间)属性而已(∩_∩),单位是ms

    <script> 
    var mySwiper = new Swiper('.swiper-container',{
    autoplay : 3000,
    speed:300,
    })
    </script>

    我们来看看speed的参数:  

    类型: number
    默认: 300
    举例: 1000

    上代码:

    不努力,还要青春干什么?
  • 相关阅读:
    ZOJ 3349 Special Subsequence
    ZOJ 3684 Destroy
    ZOJ 3820 Building Fire Stations
    HDU 5291 Candy Distribution
    HDU 3639 Hawk-and-Chicken
    HDU 4780 Candy Factory
    HDU 4276 The Ghost Blows Light
    ZOJ 3556 How Many Sets I
    技术人员的眼界问题
    神经网络和深度学习
  • 原文地址:https://www.cnblogs.com/caidupingblogs/p/5937992.html
Copyright © 2011-2022 走看看