I'm attempting to design a div that features horizontal scrolling, resembling a carousel, with multiple cards that can smoothly scroll from left to right. The goal is to have the scroll be continuous, so once the final card is reached, it loops back to the initial card. While I've made progress on achieving this effect, I am encountering difficulties with implementing indicators beneath the div. These indicators are meant to display dots corresponding to each card, allowing users to navigate between them by clicking on the dots and resetting the scroll of the div. To maintain the infinite scroll functionality, I duplicated the cards when reaching the end, which works as intended. However, the issue arises when trying to manually adjust the scroll with the cloned elements while ensuring that the correct number of dots appear (accounting for the clones). How can I tackle this problem? Are there any examples or resources available online that could offer guidance?