css hide scrollbar all browsers code example
Example 1: css hide scrollbar but allow scroll
html {
overflow: scroll;
}
::-webkit-scrollbar {
width: 0px;
background: transparent; /* make scrollbar transparent */
}
Example 2: css hide scrollbar
// Sass Mixing
@mixin hideScrollbar {
&::-webkit-scrollbar {
width: 0 !important
}
-ms-overflow-style: none;
scrollbar-width: none;
}