Lately, I've been experimenting with adding overflow-Y: scroll to materialize collections in order to maintain a fixed wrapper height. However, my latest challenge has been figuring out how to make the scrollbars transparent. I've come across suggestions involving WebKit, but those seem to cause errors and aren't compatible with React. I also attempted using external CSS with a specific ID, but unfortunately, it didn't yield the desired result. The presence of visible scrollbars is really detracting from the overall aesthetics.
#no-scroll1::-webkit-scrollbar {
width: 0px;
background: transparent;
}
Here's a snippet of the React code:
<div
id="no-scroll1"
className="col s2 z-depth-2 grey lighten-5 no-scroll"
style={{ height: "55em", overflowY: "scroll"}}
>
Just to note - I am currently using Chrome for development purposes, along with React and Babel CDNs.