The scrollbar, like Google, uses

With the latest updates that Google is deploying, custom JS scrollbars have been created on all sites (at least in Chrome).

What I like the most is that it is simple and works great. Until now, many of the JS scrollers I've seen do not work so well, that is, if you scroll or scroll and move the mouse very quickly, they do not work so well.

Therefore, I am just curious to find out if there is any of the scrollers that is simple / small (printing the code flag is small) and works well (as mentioned above).

I was thinking about using jQueryUI scroll as a base, but for my needs I cannot use jQueryUI for this function.

+6
source share
3 answers

They are made using styles ::-webkit-scrollbar psudo-elements with CSS, not JS.

+8
source

I am using lion bars jquery scroller and I think it meets all the specifications you specify, try it.

0
source

Take a look at https://gist.github.com/fanzeyi/3995618

Works great for me.

0
source

Source: https://habr.com/ru/post/900547/


All Articles