Open shainanigans opened 7 years ago
I'm not encountering any issues on my machine. The behaviour that I'm encountering is the header changing color whenever the section hits it by doing something like a "slide up" animation. Is this the intended behaviour?
Hi @el1f , thanks for having a look.
There are three strange things that happen, the first two of which I believe are related:
Hey there, I'm having an issue implementing a scene used to control the colour of my header depending on which section of the page is currently at the top of the viewport. I'm using Scrollmagic with GSAP and iterating over each section of the page, changing the colour of my header each time a section reaches the header.
From the console.log I've added to my tween, it seems to be getting the right colour at the right time, but the first time the page is scrolled down and then up it doesn't look right visually.
Any help would be much appreciated! Been stuck on this for a while now.
https://codepen.io/shainanigans-1472169587/pen/dVgQOK