Skip to content

Instantly share code, notes, and snippets.

@zzag

zzag/scrollbar.css

Created Jul 26, 2016
Embed
What would you like to do?
Custom Google Chrome scrollbar
::-webkit-scrollbar {
width: 9px;
height: 9px;
background-color: rgba(0,0,0,0);
-webkit-border-radius: 100px;
}
::-webkit-scrollbar-thumb {
background: rgba(0,0,0,0.5);
border: 1px solid transparent;
background-clip: padding-box;
-webkit-border-radius: 100px;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(0,0,0,0.6);
background-clip: padding-box;
}
::-webkit-scrollbar-thumb:active {
background: rgba(0,0,0,0.8);
background-clip: padding-box;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.