What I want is that the scroll is overlaid and transparent, so the elements behind it are shown through.
And This is what I want the scrollbar to look like.
Transparent scrollbar with css
I tried all of the code in the above question, but it failed.
My current css is this.
::-webkit-scrollbar {
width: 10px;
background: transparent url('../../assets/transparentPNG.png') repeat !important;
}
::-webkit-scrollbar-track {
background: transparent url('../../assets/transparentPNG.png') repeat !important;
}
::-webkit-scrollbar-track-piece:start {
background: transparent url('../../assets/transparentPNG.png') repeat !important;
}
::-webkit-scrollbar-track-piece:end {
background: transparent url('../../assets/transparentPNG.png') repeat !important;
}
::-webkit-scrollbar-thumb {
background-color: rgba(67, 62, 78, 0.1);
opacity: 0.1;
}
::-webkit-scrollbar-button {
display: none;
}
::-webkit-scrollbar-corner {
display: none;
}