Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
The owl carousel has events. For example changed.owl.carousel
Example
owl.on('changed.owl.carousel', function (e) {
console.log("current: ", e.item.index) // текущий слайд
console.log("total: ",e.item.count) // общее кол-во слайдов
})
play around with the methods and events of the slick slider, there's a lot of interesting stuff there.
I solved something like this here
UPDATE: sorry, I didn't notice that we were talking about the owl carousel, but, in any case, you can do this on slick too.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question