r/learnwebdev • u/Alkotronikk • Apr 03 '17
Custom scrollbars
What do you use to style your own custom scrollbars that works not only on desktop browsers (Chrome, Firefox, IE, Safari), but even on mobile devices?
4
Upvotes
r/learnwebdev • u/Alkotronikk • Apr 03 '17
What do you use to style your own custom scrollbars that works not only on desktop browsers (Chrome, Firefox, IE, Safari), but even on mobile devices?
2
u/ShortSynapse Apr 04 '17
You can do it a few ways:
Using CSS to change scrollbars appearance
Hide the normal scrollbars and make your own with normal elements, handling interaction manually
A plugin
With that said... Don't. Don't screw with the user. For the same reason you wouldn't change how the mouse pointer moves, don't break the scrollbars for the user. It is expected that their application performs in a certain way. If it doesn't, that's an issue.