How to add Smooth Scrolling to your one page website with jQuery

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateUI20 min

About this video

Shows how to add smooth scrolling to a one-page website with a few lines of jQuery, and how to switch the active navigation link as the user scrolls. The video is aimed at people who want to understand and write their own jQuery for interface behaviour.

What you’ll learn

  • Add smooth scrolling to in-page navigation links with jQuery
  • Switch the active nav link as the user scrolls down the page
  • Write small jQuery scripts instead of relying on bloated plugins