Dynamic color change while scrolling with CSS

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateWeb DesignUI8 min

About this video

A CSS tutorial showing how to use mix-blend-mode so a fixed or sticky element switches colour based on the background beneath it. It covers setup, sticky positioning, browser compatibility and using an image in place of text.

What you’ll learn

  • Apply mix-blend-mode to a fixed or sticky element
  • Check the effect works across browsers
  • Adapt the technique to an image instead of text