Aleš Sýkora / December 7, 2020 / 0 comments
Custom SCROLLBAR with Oxygen Builder
1 min read / Oxygen Builder, Plugins, WordPress / Share on: Twitter, LinkedIn, Facebook
Post summary: Are you looking for some cool scroollbar, like on CSS-Tricks website? for a specific DIV use this in your custom CSS: for a whole document use body instead.
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.
Fuel my passion for writing with a beer🍺
Your support not only makes me drunk but also greatly motivates me to continue creating content that helps. Cheers to more discoveries and shared success. 🍻