The trick is that mask covers the scrollbar! So, if you create a mask that is exactly as wide as the scroll bar and super duper tall, it can perfectly cover it. You can even transition the position of the mask, faking a fading in/out effect. It works across Chrome, Firefox, and Safari, regardless of my macOS settings.

1m read time From css-tricks.com
Post cover image
2 Comments

Sort: