When I put multi div with the same slider container class, it works for the first div only.
Not all DIVS becomes sliders.
Same as #103
Here is the solution for this issue:
const tnsCarousel = document.querySelectorAll('.tns-slider');
tnsCarousel.forEach(slider => {
const tnsSlider = tns({
container: slider,
});
});
When I put multi div with the same slider container class, it works for the first div only.
Not all DIVS becomes sliders.
Most helpful comment
Here is the solution for this issue: