Have you ever needed to build a UI where some component on the page needs to respond to elements as they’re scrolled to a certain threshold within the viewport — or perhaps in and out of the viewport itself?
This article for Smashing Magazine walks through building a page header that updates its colours as the user scrolls to different sections of the page.