Answer the question
In order to leave comments, you need to log in
How to make such a slider with owl carousel?
Please tell me how to make such a slider on owl carousel. After looking at the code, I realized that they did the same on the owl carousel, but I don’t understand how to connect both sliders?
https://www.prime-property.com/en/Sale/Shop/Cyprus...
Answer the question
In order to leave comments, you need to log in
document.querySelector searches the entire page using a normal element iteration, while children[] is O(1).
Clearly, children is faster, especially with a large set of elements on the page.
Proof
The second option is definitely better. Do not forget that the path to child elements can change and your design will break.
It seems to me that you need to understand the events: https://owlcarousel2.github.io/OwlCarousel2/docs/a...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question