Answer the question
In order to leave comments, you need to log in
Is it possible to make infinite scroll in owl.carousel 2 like in owl.carousel 1?
So it goes.
The slider cannot operate on clones, and in the second version of owl.carousel, infinite scrolling is done using cloning.
In the first version, as far as I remember, the slider simply scrolled back to the first slide if it reached the end.
Is it possible to do this in the second version?
Answer the question
In order to leave comments, you need to log in
With the help of the 'to.owl.carousel' trigger, I was able to achieve the desired effect
// если слайд последний
if ( $('.owl-item.active').index() === $('.owl-item').length - 1 ) {
it.carousel.trigger('to.owl.carousel', [0, 200]);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question