I have two carousel on the same page. Reading multiple issues(https://github.com/metafizzy/flickity/issues/206) and the doc(https://flickity.metafizzy.co/options.html#carousel-cell2) I was able to make one of the carousel run perfectly.
The perfect one looks like this : https://i.stack.imgur.com/vw3Yj.jpg and the JQuery for it is :
$('.main-carousel').flickity({
// options
contain: true,
initialIndex: 0,
imagesLoaded: true,
groupCells:2,
resize: false,
});
Now, I tried to make the next one exactly with same options. But it keeps on overlapping. (https://i.stack.imgur.com/3unZS.jpg)
$('.school_section1').flickity({
// options
contain: true,
initialIndex: 0,
imagesLoaded: true,
groupCells:2,
resize: false,
});
As all almost all the css and options are same it should behave like the one above but it is not the case.
You can see the page here
I want the second one to behave like the first one. But I am unable to make it work.