I have created a contrast logo which switches between light and dark when going over different sections of the page, my header is set to 100vh and the rest between 60 and 80 vh how can I set the trigger on the interaction so that when I rollover each section the animation fades to the correct one.
One other issue is knowing which direction you have entered and exited the section to know which animation to trigger. Any help would be awesome as I need to get this working I don’t want to have to default to a solid behind the logo.
Hey, yeah slow progress, the offset is where I’m having problems, I’m struggling to get the right values as you cannot set vh. I have two logos one is alpha out so when in view one alphas out and one in.
I think if I can get the offset right then it might work but really struggling
Create a blank div 1px x 1px position absolute inside the section and set it to be 100vh top, then add the interaction on that div to trigger no need to offset. and boom done.