Thanks, what you suggest to me then is that I do this on my timiline
i = true;
tl = gsap.timeline({
repeat:-1,
defaults: {
duration: .5,
ease: "quad.out"
},
});
tl.addLabel( "frame1");
tl.to("#txt1", {opacity:0}, "frame1");
tl.to("#txt2", {opacity:1}, "frame1");
tl.addPause( "frame1", function () {
tl.paused(i)
});
tl.addLabel( "frame2");
tl.to("#txt1", {opacity:1}, "frame2");
tl.to("#txt2", {opacity:0}, "frame2");