Thank you, but I want run the title after 1 second. I don't want to have delay in first animation. I want to have delay when the first stagger animation is complete, so I can show the button.
Here my code:
let title = document.getElementsByClassName('title');
let tll = new TimelineMax({ repeat: -1 });
tll.staggerFromTo(title, 1, {
x: -250,
y: 300,
}, {
x: 0,
stagger: 1,
ease: Sine.easeInOut,
delay: 3
});
tll.staggerFromTo('.btn', 1, {
x: -250,
y: 200,
}, {
x: 0,
delay: 3,
ease: Sine.easeInOut
});
tll.to(title, 1, {
opacity: 0, ease: Linear.easeNone
})