Add an unique id for each section, like below. (You already have it)
<section id="section1">
Then use this id as href
of a
in navigaton.
<li><a href="#section1">Portfolio</a></li>
You do not specify styles for active link. So you cannot view the changes. But if you inspect the code, then you will see that active
class has been added to li
element of navigation.
To view the changes apply active styles something like below -
#myScrollSpy .nav > li.active a {
color: #fff;
}