April 2018
Beginner
368 pages
7h 37m
English
What we want to do is make the navigation stick to the top when we scroll passed the Blog section, as shown in the following screenshot:

To make this happen, we'll add an extra class with jQuery on the header. This extra class will make the navigation stick to the top and make the navigation background dark. Let's first create this extra class:
header.sticky { }
To this class, we will add the following properties:
header.sticky { position: fixed;