How to make slick carousel images repeat infinitely

半腔热情 提交于 2020-01-25 04:41:07

问题


I have 6 images inside my slick carousel. They take full width space of the screen but they don't repeat infinitely. To explain it further I mean that I want to use only 6 images and if they skip to the left overtime then they will appear from the right once again and again (They will keep repeating)


回答1:


Are you using bootstrap by any chance? because it has a built in carousel that can infinitely slide. Check out their code and see if you can imitate their logic.

https://getbootstrap.com/examples/carousel/

Edit**

after looking further into it, does this help?

$('.multiple-items').slick({
  infinite: true,
});

referenced from: http://kenwheeler.github.io/slick/

I haven't used slick before, but I believe you can set its' infinite property to true. Let me know if that works!



来源:https://stackoverflow.com/questions/37208647/how-to-make-slick-carousel-images-repeat-infinitely

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!