Aleš Sýkora / November 28, 2023 / 2 comments

Oxygen 4.0 – fix Swiper.js slider

Post summary: After Oxygen 4.0 update you may encounter problem with Swiper slider used within repeater. To fix this problem, add this CSS styles. The Swiper.js repeater problem after Oxygen 4.0 Fix it back to normal appearance What to do? Just add a little CSS to make it working like normal: I am using the class .swiper-wrapper…

After Oxygen 4.0 update you may encounter problem with Swiper slider used within repeater. To fix this problem, add this CSS styles.

The Swiper.js repeater problem after Oxygen 4.0

Wrong behavior of Swiper.js slider after Oxygen 4.0 update

Fix it back to normal appearance

What to do? Just add a little CSS to make it working like normal:

Normal behavior of Swiper.js slider in Oxygen Builder
.swiper-wrapper {
        flex-wrap:nowrap;
        flex-direction:row;
	align-items:start;
	justify-content:unset;
        width:100%;
        height:inherit;

}

I am using the class .swiper-wrapper on repeater element. If you use other class, please change the code. You can use default repeater class .oxy-dynamic-list, but be aware, it will change CSS for all your repeaters, so you better use some custom class only for Swiper.js sliders in Oxygen.

Fuel my passion for writing with a beer🍺

Your support not only makes me drunk but also greatly motivates me to continue creating content that helps. Cheers to more discoveries and shared success. 🍻

2 comments

Share Your Thoughts