I am looking to create a fading background image that changes as I scroll down my page.
I remember seeing something similar with two divs that fade using opacity. It looked like this:
<div class="background1"></div>
<div class="background2"></div>
There was also some jQuery code involved, but I couldn't quite figure it out.
If anyone has any advice or tips, I would greatly appreciate it.
I think using scrollTop might be the key, but I'm not exactly sure how to implement it.