I use a secondary fille called custom.css to overwrite the bootstrap code and I would like to know how to create a code that is activating only when the visitor of my site is not in the very top of the page.
Until now I created a transparent navbar using the default code provided by bootstrap. The only thing I have to do is to set it to execute: background-color: #color
when the visitor is scrolling down.
Example: https://www.lyft.com/
When I am in the top of the page, the navbar is transparent, but when I scroll down it becomes opaque.