I’m sure I’ve achieved this many times in the past but it’s bugging me as I can’t remember.
See the very start of this homepage. How the background fades gradually from colour to white once once the header leaves the page.
I can get close with a time fade but not a pixel space fade. Any ideas?