Creating a sticky vertical scrollspy menu with progress bar
In this section lets see how to use DD ScrollSpy Menu to create a sticky
vertical menu that not only highlights the section the user is currently
viewing, but displays a progress bar of how much the user has viewed
within that section. To do this we'll simply turn on the script's
"enableprogress
"
option, plus make a couple of important CSS injections into the spy menu to
facilitate the progress bars inside its links. And to make the menu sticky,
we'll turn to an elegant sticky plugin called
Sticky. In the
end what we get is something very similar to the right sticky menu seen on the
article pages of
The Daily
Beast.
The following is the entire source code for the menu plus a simple two column page layout to house it, for those that just want to get up and going as quickly as possible: