Last active
March 7, 2023 10:59
-
-
Save nikolailehbrink/3612cfda848e3a1b56de87bd99377f72 to your computer and use it in GitHub Desktop.
Custom css scrollbar design
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Firefox */ | |
* { | |
scrollbar-width: 14px; | |
scrollbar-color: #a71b71 #ffffff; | |
} | |
/* Chrome, Edge, and Safari */ | |
::-webkit-scrollbar { | |
width: 14px; | |
} | |
::-webkit-scrollbar-track { | |
background: #fff; | |
} | |
::-webkit-scrollbar-thumb { | |
background-color: #a71b71; | |
/* border: 2px solid #fff; */ | |
} | |
::-webkit-scrollbar-thumb:hover { | |
background-color: #d3228f; | |
} | |
::-webkit-scrollbar-thumb:active { | |
background-color: #7b1453; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment