Hey! I built this simple solution that changes the color of the scrollbar as sections enter and exit the viewport for an upcoming project and thought it could be useful enough to share.
It was made with custom CSS and Javascript.
The Javascript code uses Finsweet's Class Adder and is standalone.
Leave a like if you enjoy and feel free to clone it and use it as a starter for your own projects 🤩
0 Comments