Thank you so much for this answer. It worked and I now understand the basics of a timeline and how it works and what scrub do.
I have two following questions.
1. In your example, the h2 starts to fade in (start trigger) and then fade out. (end trigger) It is never full visible 100% for like 200px.
Is there a way to make more start/end to one element? So start -> fade in until it hits the end, then after end, it is full visible for couple of pixels until it hits a new start when it starts to fade out until it hits a new end?
2. What if there are multiple h2s, paragraphs in different positions and i wanted to put them all inside one timeline.
I have tried to make it happen, and this is what I created. So multiple texts that need to fade in and out in same timeline so i dont have to put in so much code in the js, but this way i cant fade out the second one and have no power to add start/end to it.
An updated Pen. https://codepen.io/DMT82/pen/WNwMbeB