Classes

Make navbar sticky

Use class fixed-top to make the navbar stick to top

Target any div on scroll

Use .scrolled class in your css to target any div. The scrolled is added to the body tag on scroll.