我想要滑块自动播放
P粉667649253
P粉667649253 2024-03-29 14:08:18
[CSS3讨论组]

var mainSwiper = new Swiper(".swiper-container-v", {
    direction: "vertical",
    kyboard: true,
    pagination: {
        el: ".swiper-pagination-v",
        clickable: true
    },
    mousewheel: true,
    slideToClickedSlide:true,
    
});
var swiperH = new Swiper(".swiper-container-h", {
    spaceBetween: 50,
    pagination: {
        el: ".swiper-pagination-h",
        clickable: true
    },
    loop: true,
    navigation: {
        nextEl: '.swiper-button-next',
        prevEl: '.swiper-button-prev',
      },
});



  
  CodePen - Vsite Test2018
  






                
                
                

Explore the Power of

AI + VR

Visualize and understand your data as never before thanks to our innovative use of Machine Learning, immersive visualization and collaborative analysis.

Watch the Video

Experience

Immersive Analytics

Full collaboration capabilities across multiple devices: run your analysis on Desktop, Mobile and Virtual Reality.

Watch the Video

Explore Data using

Innovative Maps

Look at your geo located data as never before thanks to our interactive maps: visualize on 2D maps or 3D globe!

Watch the Video

Engage & Share using

Collaborative Analysis

SVO – Shared Virtual Office™: collaborative and fully customizable shared space to analyze data, build VR dashboards, present and discuss insights.

Watch the Video

Explore the Power of

Smart Mapping

Visualize and understand your data as never before thanks to our innovative use of Machine Learning, immersive visualization and collaborative analysis.

Watch the Video

我希望示例中的滑块自动播放。

var mainSwiper = new Swiper(".swiper-container-v", {
    direction: "vertical",
    kyboard: true,
    pagination: {
        el: ".swiper-pagination-v",
        clickable: true
    },
    mousewheel: true,
    slideToClickedSlide:true,
    
});

我想在示例代码中添加自动播放功能。

P粉667649253
P粉667649253

全部回复(1)
P粉885035114

这非常简单,您只需在代码中添加自动播放属性即可。请检查此代码。希望您能得到答案

var swiper = new Swiper('.swiper-5', {
    navigation: {
      nextEl: '.swiper-button-next',
      prevEl: '.swiper-button-prev',
    },
    loop: true,
    autoplay: {
      delay: 3000,
      disableOnInteraction: true,
  },
});
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号