zoukankan      html  css  js  c++  java
  • swiper完整配置

    var swiper = new Swiper('.banner', {
        spaceBetween:0,
        centeredSlides: true,
        autoplay: {
            delay: 5000,
            disableOnInteraction: false,    
        },
        pagination: {
            el: '.swiper-pagination',
            clickable: true,
        },
        loop: true,
        navigation: {
            nextEl: '.swiper-button-next',
            prevEl: '.swiper-button-prev',
        },
        speed:1300
    });

    1. speed---控制切换速度

    2.spaceBetween---控制两个splide的间距

    3. loop---循环滚动

    4.pagination---下面小点

    5.navigation---左右切换箭头

    6.autoplay---自动切换配置

  • 相关阅读:
    每日日报63
    每日日报62
    每日日报61
    每日日报60
    每日日报59
    每日日报58
    el-table表格拖动排序
    vue/eslint
    $attrs $listeners
    table封装成全局组件
  • 原文地址:https://www.cnblogs.com/wangshengli520/p/9566773.html
Copyright © 2011-2022 走看看