On single page websites, there are lots of anchor links connected on an ID selector. And it would be better if it will scroll up/down when you click it. For example, the go to top anchor is linked to #header.
The script below will help you give a cool animation effect while navigating to your site. It will scroll the page to your target ID while giving a smooth feel for the user.
Anchor links for ID selector for fixed header
You can still scroll the page even if you have a fixed header. The ploblem is some parts are covered. The solution is on line 10. Offset allows you to have a sort of distance from the top of the screen to your target ID.