I am trying to change the background color of body dynamically using scroll trigger on each section. However, it appears that after refreshing the site (codepen), what happens is that scrolling to the second part (the one with the id of #Codequest) does not trigger the background color change. If I try to scroll back up and down, the mentioned change suddenly works. Is there any reason as to why this is happening and how to fix it?
Thanks!