【问题标题】:Food menu slider with an infinite loop带有无限循环的食物菜单滑块
【发布时间】:2019-01-01 02:24:51
【问题描述】:

您能否帮助我了解如何制作我在https://livedemo00.template-help.com/wt_61177_v1/#undefined6 网站的“我们的菜单”部分看到的具有无限循环和相同功能的滑块。

【问题讨论】:

    标签: javascript html menu slider infinite


    【解决方案1】:

    您正在寻找的确切滑块是Slick Auto play slider,它只是您所拥有示例的自动播放版本。示例代码。

        $('.autoplay').slick({
      slidesToShow: 5, //The amount of slides to be in view at any given time
      slidesToScroll: 1, // The amount of slides to scroll on click or auto scoll
      autoplay: true, // Sets the slider to automatically slide through the slides
      autoplaySpeed: 2000, // The interval between sliding between slides
    });
    

    slicks 网站上的滑块示例图片:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-05-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-01-06
      相关资源
      最近更新 更多