hide scroll bar show only when scrlling in css code example
Example 1: css hide scrollbar but allow scroll
html {
overflow: scroll;
}
::-webkit-scrollbar {
width: 0px;
background: transparent; /* make scrollbar transparent */
}
Example 2: hide scroll bar when not needed
overflow: auto;