Hello!
I've ran into some problems with a scrolltrigger animation.
If I scroll below the div containing the animation, and refresh the page it starts from the second slide, after i scroll up it keeps resetting itself to the first slide.
Possible solution I thought about, is scrolling the page to the top after a refresh, but the bug still persists after that, so i thought about refreshing the whole animation to it's base state.
Other solution i though about is always loading the page from the server, by having each refresh also delete cache, but i don't think this would be a great idea.
Any help or pointers are appreciated!
I also linked a codepen with the code I use (I know it's kind of a basic way to do this, but the dynamic way that i got from greensock, wouldn't play nice with other content on the site) The error doesn't recreate in codepen though. So i made an html file in which the bug is recreatable.
demo.html