I have a problem with Swiper Slider and Simple Parallax Scrolling - when I change slides, I see the same image all the time.
I guess it is the position of the picture in the parallax (fixed).
I tried to add a z-index for .swiper-slide-active but it did not help.
HTML:
<div class="top-slider swiper-container w-100 fl">
<div class="swiper-wrapper">
<div class="slide-item swiper-slide" data-parallax="scroll" data-image-src="img/top_slide_01.jpg">
</div>
<div class="slide-item swiper-slide" data-parallax="scroll" data-image-src="img/top_slide_02.jpg">
</div>
</div>
</div>
JS:
// Top slider
var topSlider = new Swiper('.top-slider', {
loop: true,
slidesPerView: 1,
effect: 'fade'
});
How to cope with this problem?
Can use some other way to parallax scrolling?