It is now possible to hide the scrollbar while retaining functionality using CSS without using JavaScript.
.box{ -ms-overflow-style: none; /* IE and Edge */ scrollbar-width: none; /* Firefox */ } .box::-webkit-scrollbar { display: none; }