1/* Hide scrollbar for Chrome, Safari and Opera */
2.scrollbar-hidden::-webkit-scrollbar {
3 display: none;
4}
5
6/* Hide scrollbar for IE, Edge add Firefox */
7.scrollbar-hidden {
8 -ms-overflow-style: none;
9 scrollbar-width: none; /* Firefox */
10}
1html {
2 overflow: scroll;
3}
4::-webkit-scrollbar {
5 width: 0px;
6 background: transparent; /* make scrollbar transparent */
7}
1/* A very quick an applicable solution is to use this piece of code: */
2html {
3overflow: scroll;
4overflow-x: hidden;
5}
6::-webkit-scrollbar {
7width: 0px; /* remove scrollbar space /
8background: transparent; / optional: just make scrollbar invisible /
9}
10/ optional: show position indicator in red */
11::-webkit-scrollbar-thumb {
12background: #FF0000;
13}
1// Sass Mixing
2@mixin hideScrollbar {
3 &::-webkit-scrollbar {
4 width: 0 !important
5 }
6 -ms-overflow-style: none;
7 scrollbar-width: none;
8}