Transparent scrollbar
18,071
div
{
width:410px;
height:100px;
overflow-y:overlay;
border:1px solid green;
position:relative;
}
::-webkit-scrollbar{
width:20px;
}
::-webkit-scrollbar-thumb{
background-color: rgba(255,255,255,1);
}
Author by
Татьяна Ферулёва
Updated on June 04, 2022Comments
-
Татьяна Ферулёва almost 2 years
How to make scrollbar transparent? Only css. Only for webkit browsers. My code here.
div{ width:410px; height:100px; overflow-y:overlay; border:1px solid green; position:relative; } ::-webkit-scrollbar{ width:20px; } ::-webkit-scrollbar-thumb{ background-color:rgba(0,0,0,1); }
-
Татьяна Ферулёва over 10 yearsI need transparent scrollbar not invisible!=)
-
Татьяна Ферулёва over 10 yearsThanks. But it's not the thing I need
-
preahkumpii about 10 years
rgba(255,255,255,255)
is not valid code. It should bergba(255,255,255,1)
.