-
I am using swiperJS to slide in between 50+ images. My problem is that when I swipe from, let's say, image 3 to 40, the swiper rapidly shows transition animation from 3 to 40 instead of just 3 and 40. I am using the effect: "fade". I don't want the fade effect to look like it is glitching when switching between 2 distant images. If somebody could help me, I would be really happy. Thank you, Rémi |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found how it is possible. You need to use: |
Beta Was this translation helpful? Give feedback.
I found how it is possible. You need to use:
swiper.slideTo(index, 0)
The 0 sets the speed to 0 which removes transition effect. Its good when you use fade effect, because you wont see much of a difference if the next image does'nt change much. Otherwise, I dont see other options for now. Hope it can help someone.