After implementing swiper js from , I encountered an issue. The initial loading displays only a single carousel item before the rest start appearing, creating a glitchy effect.
To clarify, when the website is loaded, only the first item is visible in the carousel (highlighted in the red box) before the layout transitions to show all four items as depicted in the image.
I discovered that setting max-width:25%;
resolves this particular issue. However, if there are two items per view in the carousel, this CSS code sets the width to 25% for each item.
Is there a better solution to this problem? Any assistance would be greatly appreciated.