Hide scrollbar but keep functionality

A helpful CSS code snippet hides the default scrollbar but keeps the functionality.

/* Hide scrollbar for Chrome, Safari and Opera */
.slider::-webkit-scrollbar {
display: none;
/* Hide scrollbar for IE, Edge and Firefox */
.slider {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */

How to use

Simply add the styles to the element that you need to hide the scrollbar. Useful for creating a CSS-only image slider.