vertical scrollbar css visible code example
Example 1: css hide scrollbar but allow scroll
html {
overflow: scroll;
}
::-webkit-scrollbar {
width: 0px;
background: transparent;
}
Example 2: hide horizontal scrollbar css
.x-scroll-disabled {
overflow-x: hidden;
}
Example 3: javascript keep scroll visible
::-webkit-scrollbar {
-webkit-appearance: none;
width: 7px;
}
::-webkit-scrollbar-thumb {
border-radius: 4px;
background-color: rgba(0, 0, 0, .5);
-webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5);
}
Example 4: hide scroll bar when not needed
overflow: auto;