The scroll bar can be seen in the side-panel when you click on a tweet and the conversation linked to the tweet is long enough.
How is the scroll bar created and styled?
The scroll bar can be seen in the side-panel when you click on a tweet and the conversation linked to the tweet is long enough.
How is the scroll bar created and styled?
I believe they are using a jQuery plugin or one created by themselves, either way it's something similar to jScrollPane
http://www.kelvinluck.com/assets/jquery/jScrollPane/jScrollPane.html
They're using
::-webkit-scrollbar
and the associated pseudo-elements, which only work in WebKit browsers (which is fine, because this is just aesthetics).Take a look at this for more information: Apple-like scrollbars using CSS
I've taken the CSS that Twitter is using, see: http://jsbin.com/ubasew
The
#doc
is as Twitter had it, and it's there so that only scrollbars inside#doc
are customised.