Hey gsap'ers:
I have a timeline of tweens that i want to play forward: that reveals text into view. Then i want to reverse it, so the text reveals out of view.
The problem is: the last tween has a blinking tween that repeats infinite, and if i reverse the timeline, it tries to play all the blinks back before it starts to play the other tweens which is not what i want.
I tried to separate the blinking part to another timeline, it's not staggering the two timelines correctly.
Blake said to do it like this in a previous post
gsap.timeline()
.add(timeline1)
.add(timeline2, "+=0.5")
.add(timeline3, "+=0.5")
...
but it's not working for me with ">" position parameter, it doesn't seem to be waiting for the full t1to be done before starting t2.
Would you mind looking at this code, and seeing where i can improve it?
https://codepen.io/naaadz/pen/XWYoPEr/2f9093547e4a7610f254093f3fec4118?editors=0010
Indended behavior:
press play button
writes the word style
reveals THAT
types the letters compiles
starts the flashing underscore
press reverse button
underscore stops
all other animations reverse in the opposite order they were revealed
TYSM
Nadia