Change Background Color Gradient using CSS - Tutorial

Axolobit on YouTubeWatch on YouTube

SaveMark complete

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

BeginnerWeb Design5 min

About this video

Shows how to make a page background colour gradient change as the viewer scrolls, using only CSS. It walks through the file structure, a basic index.html and style.css, and the gradient code, and is aimed at people new to HTML and CSS.

What you’ll learn

  • Set up index.html and style.css for a simple web page
  • Apply a colour gradient to a page background in CSS
  • Preview the scroll-based gradient effect in the browser