Hi guys,
This might be very easy, but not sure how to do it. If I have this function here that returns a timeline:
export const enterTextAnimation = text => {
const tl = gsap.timeline();
tl.to(text, {
y: '-100%',
opacity: 0,
stagger: 0.014,
});
return tl;
};
And I later use the function like the first line here:
How can I run a function onComplete here?
const tl = enterTextAnimation(lines.chars);
tl.onComplete() (?)...