Hello, I am trying to make a consecutive animation on scroll that reverses the previous one and then executes the new one. Is this an optimal way, as I am trying to have different animations for each container? If not, can someone please show me a better one? Thanks a lot!
let tlForText = gsap.timeline();
let indexForText = 0;
const textAnimations = {
1: function() {
indexForText = 1;
tlForText .to('first-containe