Smooth scrolling with one line of CSS

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

BeginnerUI3 min

About this video

Shows how to add smooth scrolling to a web page with a single line of CSS, and notes that browser support is not yet universal. Suited to people starting out with front-end code who want a quick interface effect.

What you’ll learn

  • Add smooth scrolling to a web page with one line of CSS
  • Check browser support before relying on smooth scrolling