Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scroll bar like Google is using

With the most latest updates Google has been rolling out, the sites have all been getting custom JS scroll bars (at least in Chrome).

What I like most about it is that its simple and works perfectly. Until now a lot of the JS scrollers that I have seen don't function that well - i.e. if you scroll really fast or scroll and move your mouse around they don't function that well.

Hence I'm just wondering if anyone know of any scroller out there that is simple/small (code foot print is small) and functions well (as mentioned about).

I have thought about using jQueryUI's scroll as a base, but for my needs I can't take on jQueryUI for this one feature.

like image 533
vdh_ant Avatar asked Nov 01 '11 18:11

vdh_ant


1 Answers

They're done by styling ::-webkit-scrollbar psudo-elements with CSS, not JS.

like image 183
ephemient Avatar answered Oct 06 '22 09:10

ephemient