Closed willbrowningme closed 7 years ago
In the page background
<article class="page-home add show shown" style="background-color: rgb(97, 20, 204);">
How does the rgb value change smoothly as you scroll down the page?
I've looked through the code but cannot find the javascript that achieves this.
Thank you
Hey @tttwb, we were using a library called scrollmagic for that.
You can find the relevant code here: https://github.com/ustwo/ustwo.com-frontend/blob/master/src/app/components/home/index.js#L43-L77
In the page background
How does the rgb value change smoothly as you scroll down the page?
I've looked through the code but cannot find the javascript that achieves this.
Thank you