Hello and thanks for your quick response!!
The solution to this post worked for me but I encountered 2 new problems.
First, I had to disable "scroll-behavior: smooth", which makes my nav work kind of awfully.
Also, killing the scrolltrigger made all of the following sections (which also work with scrolltrigger) break 😕
Hello everyone!
I started using scrolltrigger to make a nice scrolling website for a client.
In the header section, I want the animation tu run on scrub but not on backwards scrub, so I killed it onLeave. The problem is that when the animation is killed a large black space is left above my header section.
I tried making it the same as I have it on CodePen but I failed.. hope it's understandable this way.
Thank you in advance!