Has anyone managed to integrate Slider.js into a collection list?
One issue with Slider.js is there can’t be two instances of a Slider.js slider on the same page without changing its name, correct me if I am wrong.
I did come across this bit of code )below) which automatically alters the sliders name but I am not sure if this will work in this instance or I just did not implement it correctly so I removed the code. Also not sure how this would work in a 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 */
});
}
There is some info in the thread link below of how to create multiple sliders on the same page thanks to but not how to integrate Swiper in a collection list.
I have attached a screen shot of where it is located.
Here is my site Read-Only: 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