If you are doing long-form article it’s helpful to break it up into smaller sections and with this snippet, by Bramus you can add jump-links to those sections with a sticky sidebar navigation menu.
If you are having trouble with the pen, try the archived copy on GitHub
Sidebar Jump Link Snippet
See the Pen Smooth Scrolling Sticky ScrollSpy Navigation by Bramus (@bramus) on CodePen.default