My goal is to display 4 images/company logos per slide, but they all end up clustered on one slide. Despite my efforts to adjust the CSS, nothing seems to work.
This is what my code currently renders: https://i.sstatic.net/ThaOK.png
Here are the react component codes I am using:
To see the issue in action, check out this link to the codesandbox: https://codesandbox.io/p/sandbox/admiring-resonance-qptjfh?file=%2Fsrc%2Fcomponents%2FAdCarousel.tsx%3A10%2C1
Explanation of code logic: For each slide, a subset of 4 logos is selected using slice. Then, it maps over this subset to create an img element for each logo. Each img has a key attribute set to the logoIndex for efficient rendering. This method ensures dynamic rendering of logos based on the current slide and their position in the overall array.
Any advice or assistance on how to resolve this issue would be greatly appreciated. Thank you in advance!