Hi,
I have some issue with Gsap and reactjs. I don't know how can i do two animations, first one, and then when it finished, start the second one.
Im working with hooks and this is my code:
useEffect(() => {
let newTimeLine = new TimelineMax()
setAnimation(
newTimeLine
.staggerFrom(
links.children,
0.5,
{ alpha: 0, y: -30 }
, 0.08)
.staggerTo(
links.children,
0.1,
{ alpha: 1, y: 0, ease: Power3.easeOut },
0.1).reverse()
)
}, []);
I want to have second animation: x: -10 to x:0 when y: 0.
My english is so bad, sorry guys...
Thanks a lot.