How to integrate Swiper.js 6(Slider/Carousel - mobile touch) & Webflow CMS

Hi Siton, thanks for sharing how to implement swiper.js, it works great.

I have an issue however that I am hoping you are able to help me with I have implement swiper inside a collections list which means it is being duplicated many times. Is there away to get this working?

I did come across the js but I realise this won’t work because you can’t change the name of each instance individually within the same collection list.

const myCustomSlider = document.querySelectorAll(‘.swiper-container’);
for( i=0; i< myCustomSlider.length; i++ ) {
myCustomSlider[i].classList.add(‘swiper-container-’ + i);
var slider = new Swiper(‘.swiper-container-’ + i, {
/* Options */
});
}

My read only link is
https://preview.webflow.com/preview/big-love-co?utm_medium=preview_link&utm_source=designer&utm_content=big-love-co&preview=2d547ce360b0b4361741751e16f14691&pageId=5faf930b439fde2208373730&mode=preview

I have attached a screen shot of where it is located.