I am relatively new to ReactJS and I am looking to develop a responsive Carousel
. Here is the code snippet that I have currently:
To achieve a responsive Carousel for both desktop and mobile devices, I utilized the react-responsive-carousel
library.
The issue arises when switching between slides on mobile. Instead of displaying the next slide properly, it only partially shows up along with the current slide. This unexpected behavior can be better understood by viewing a brief gif I created demonstrating the problem.
In contrast, the Carousel functions correctly in desktop view. I have included another gif illustrating this.
If you could provide any insights on what might be causing this inconsistency in Carousel behavior, I would greatly appreciate it.
// Code for Carousel component...
// CSS styles for Carousel...
Thank you in advance for your assistance and advice.