Animate nav on scroll - CSS-only & easy to customize

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI27 min

About this video

Kevin Powell walks through building a sticky navigation bar that animates on scroll using CSS only, with custom properties for easy customization, a fallback for browser support, and a slide-in version. It is aimed at people who already write HTML and CSS.

What you’ll learn

  • Build a sticky nav that animates with scroll-driven CSS
  • Use custom properties to make the animation easy to adjust
  • Handle browser support for scroll-linked animations