R
R
Raym0NT2021-11-25 14:31:15
css
Raym0NT, 2021-11-25 14:31:15

How to center 2 slides out of 4 in swiper or slick-slider?

Good afternoon.
How to center 2 slides out of 4 in swiper or slick-slider?
My task is to give the active class only 2 in the center in order to throw opacity 1 on this class, and
opacity 0.3 will default to the rest on the sides.
Or is there another option?
619f73b3b519b260955043.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaliy Pershin, 2021-11-25
@Raym0NT

As an option:

Or using js to set custom active slides:

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question