If you have not noticed it already, the website we are building is a single page site! All content that is required is found on the same page. The way our site is currently designed, it would mean clicking on one of the site navigation links would scroll roughly to the section that the navigation link refers to. We would like this interaction to be smooth. Let us use jQuery's smooth-scroll plugin to provide this.
Let us download the plugin file from the Github repository, hosted on
In it, we find a minimized version of the plugin (
jquery.smooth-scroll.min.js) that we shall open in our text editor.
Then copy all the code and paste it within the
plugins.js file. ...