Hello everyone! I've been racking my brain trying to think of The Right Way™ to do this.
In the codepen demo I've been working on, I've worked out how to have an inital timeline, which then moves to the main timeline. The total duration of the timeline is linked to the total pageHeight, and progress is tied to the scroll event. The main timeline currently repeats infinitely as this needs to continue to animate for an unspecificed amount of time (This could vary depending on the page's total scrollHeight).
Ideally I would like to have another timeline play at the very end of the duration which resets the 'FOUNDER' text back to the initially displayed state just before the end of the total duration, but I'm pretty stumped on how I should approach this with GSAP given I don't have a fixed distance to scroll.
Does anyone have any ideas or methods? Is there a better method I should be using rather than repeat -1 in this instance?
Thank you for any help or suggestions in the right direction!
Andrew