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