::-webkit-scrollbar {
width: 0.5vw;
}
::-webkit-scrollbar-track {
background-color: transparent;
}
::-webkit-scrollbar-thumb {
background-color: rgb(99, 99, 99);
border-radius: 10px;
}
I wrote this code to style a scrollbar in CSS. The scrollbar is functioning properly, but I am facing an issue where the track of the scrollbar is not transparent on Chrome.
Here's the problem I'm experiencing: non-transparent track on scrollbar
However, my desired outcome is for the scrollbar track to be transparent like this: expected result