r/learnwebdev • • 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

2 comments sorted by

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.

1

u/fullstack_devs Apr 07 '17

i gotta say, i agree with you 100% on this one, but sometimes you just want that scrollbar to be a little bit simpler :P