D
D
DeniSidorenko2017-08-29 15:34:40
JavaScript
DeniSidorenko, 2017-08-29 15:34:40

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

3 answer(s)
F
Fragman, 2019-05-07
@dollar

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

A
Alfieros, 2019-05-07
@mrsexy

The second option is definitely better. Do not forget that the path to child elements can change and your design will break.

A
Alexander Petrov, 2017-08-29
@Mirkom63

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 question

Ask a Question

731 491 924 answers to any question