Kardo
Kardo

Reputation: 1718

How to set a swiper slider to start from right, rather than left?

I want to have 2 Swiper sliders staying side by side, one starting from left, the other one from right, How to set one of them to start from right going to left?

enter image description here

<- [a...] [a3] [a2] [a1] || [b1] [b2] [b3] [b...] ->

For example each swiper has 12 slides.
I tried RTL and many other approaches but none of them works for me. RTL puts an empty space at the beginning.

Thanks for any kind help.

Upvotes: 1

Views: 2911

Answers (1)

Cyrille Dakhlia
Cyrille Dakhlia

Reputation: 417

Maybe you are probably looking for the initialSlide parameter. Setting it to your last slide index and it will give you what you want (if I understood it well!)

Upvotes: 1

Related Questions