Within my div, I have implemented multiple cards that scroll horizontally using the CSS property:
overflow-x: scroll;
This setup results in a horizontal scrollbar appearing under the div, which serves its purpose. However, I would prefer a customized scrollbar that occupies only about 50% to 75% of the div's width.
I have explored various possibilities in CSS and JavaScript to alter the width of a HORIZONTAL scrollbar, but it seems like customization options are limited. If this is indeed the case, I am curious if anyone has any experience developing a custom scrollbar.
One idea that came to mind was to create an input slider with the same number of increments as cards and associate scrolling to each card upon onChange event. Yet, I am uncertain if Window.scrollTo() can effectively handle horizontal scrolling.