Is it possible to do infinite scrolling in owl.carousel 2 as in owl.carousel 1?

Such cases.
It is impossible that the slider is operated clones, and in the second version of owl.carousel endless scrolling is performed with the help of cloning.

In the first version, as I remember, the slider just scrolled back to the first slide if it got to the end.
Is it possible to do so in the second version?
June 14th 19 at 21:02
1 answer
June 14th 19 at 21:04
Solution
With the trigger 'to.owl.carousel' was able to achieve the desired effect

// if last slide
if ( $('.owl-item.active').index() === $('.owl-item').length - 1 ) {
 it.carousel.trigger('to.owl.carousel', [0, 200]);
}


the same can in the opposite direction

Find more questions by tags FrontendJavaScriptOwl Carousel