Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make scrollbar invisible - transparent

Hey is it possible to make scrollbar "hidden" i dont wanna use overflow-y: hidden just something like background: transparent or something like that

like image 878
george Avatar asked Aug 30 '25 18:08

george


1 Answers

There is a CSS rule that can hide scrollbars in Webkit-based browsers (Chrome and Safari). That rule is:

.element::-webkit-scrollbar { width: 0 !important }

u can change width / background-color and other properties .

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0); 
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0); 
}

this css code might work

like image 99
Nihar Sarkar Avatar answered Sep 02 '25 07:09

Nihar Sarkar