是否可以使用猫头鹰轮播实现圆形/无限轮播? [英] Is it possible to implement a circular/infinite carousel using owl carousel?

查看:81
本文介绍了是否可以使用猫头鹰轮播实现圆形/无限轮播?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用猫头鹰旋转木马,并且除了不支持圆形/无限滚动外,它的运行效果非常好.我没有在谷歌和stackoverflow上搜索想法,但是没有运气.有人在猫头鹰轮播中实现了循环/无限滚动吗?

I am using owl carousel and it works perfectly except it does not support circular/infinite scrolling. I did search for ideas on google and stackoverflow with no luck. Has anyone implemented circular/infinite scrolling in owl carousel?

推荐答案

Owl Carousel确实具有loop: true配置设置.但是,有一些我不喜欢的问题:

Owl Carousel does have the loop: true configuration setting. But, there's a few problems I don't like:

  1. 在拖动结束时,猫头鹰不会转到第一张幻灯片(而不是单击导航按钮)
  2. 猫头鹰快退到第一张幻灯片,它不会无限缠绕.这是一个很大的差异,并且不如适当的圆形/无限滚动的旋转木马那么令人愉悦.
  1. Owl doesn't goto the first slide when at the end, when dragging (instead of clicking on navigation buttons)
  2. Owl rewinds to the first slide, it doesn't wrap around infinitely. This is a big difference, and not nearly as pleasing as a properly circular / infinitely scrolling carousel.

为此,我发现并推荐使用Slick Carousel. Slick具有一个中心模式",它具有我一直在寻找的功能:

To that end I've found and recommend using the Slick Carousel instead. Slick has a "Center Mode" which had exactly the functionality I was looking for:

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

这篇关于是否可以使用猫头鹰轮播实现圆形/无限轮播?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆