overflow-x scroll without scrollbar

I have a container with overflow-x: scroll. On mobile there's no scrollbar but I can grab and drag left/right to scroll. I don't want a scrollbar on desktop but still want to be able to do this? Is the solution? scrollbar-width: none; Can I have a button to scroll left right even using JS ? If so how?
1 Reply
bibamann
bibamann10mo ago
you can scroll with JS with scrollTo() or scrollBy() for example. If you want to always hide the scrollbar use overflow-x: hidden
Want results from more Discord servers?
Add your server