I'm trying to change the opacity of a fixed div when the user scrolls to a trigger section
Opacity of fixed div is 0% at start (success)
100% when the centers of trigger section and fixed div align (success)
Animate back to 0 % at end (fail)
What am I doing wrong? Is there a simpler/better way of animating this?