O
O
ololodff2021-06-16 18:25:16
JavaScript
ololodff, 2021-06-16 18:25:16

How to link 3 swiper carousels on a page?

There are 3 swiper
carousels on the page how to link them together? so that any interaction with any of them will affect all other carousels as well?
For example, when I scroll one, all the others scroll. Including scrolling with the mouse.

Here they are all in codepen

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Neverov, 2021-06-16
@ololodff

Like this. The point is that you subscribe to the slide change event, and then, after 1 function, flip all the sliders to the same slide index as the slider that just changed its index.

A
Alexander, 2021-06-16
@Seasle

How to connect 3 swiper sliders?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question