I have the following problem on our landing pages:
If you open it normally via https://www.panther.tv/p/roller-plate and then scroll, the animation which turns the header black works well.
But if instead you open the anchor link https://www.panther.tv/p/roller-plate#small the animation never gets triggered.
It’s triggered by a div (located below the header) leaving the viewport, which of course doesn’t happen in the second case.
How would you solve this? I don’t find the appropriate trigger, to launch this animation otherwise. How is this solved anyway? Is my approach wrong in general?
Looking forward to a small clue thanks!