Dylekter's post in Animation delay for scrolltrigger that ends in the same place. was marked as the answer
Thank you for your answer. I came up with the solution when you wrote about scrub. Before I tried to put the animation on one timeline, when I created two I assigned a different scrub and everything works.