繁体   English   中英

食物菜单滑块无限循环

[英]Food menu slider with an infinite loop

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

您要查找的确切滑块是Slick Auto play滑块 ,它只是示例的自动播放版本。 示例代码。

    $('.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网站上的滑块示例图片:

在此处输入图片说明

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM