Custom SCROLLBAR with Oxygen Builder
Author: Aleš Sýkora, 7. 12. 2020
Are you looking for some cool scroollbar, like on CSS-Tricks website?
for a specific DIV use this in your custom CSS:
/* Change div.a-main-content to your selector */
div.a-main-content::-webkit-scrollbar {
width: 24px;
}
/* Scroll Track */
div.a-main-content::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
-webkit-border-radius: 10px;
border-radius: 10px;
}
/* Scroll Handle */
div.a-main-content::-webkit-scrollbar-thumb {
-webkit-border-radius: 10px;
border-radius: 10px;
background-image: linear-gradient(to top, #a18cd1 0%, #fbc2eb 100%);
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}
div.a-main-content::-webkit-scrollbar-thumb:window-inactive {
background: rgba(255,0,0,0.4);
}
for a whole document use body instead.