Hi,
Right now everything is handled by a single Tween instance:
tl.current = gsap
.timeline({
defaults: {
duration: 2.5,
ease: 'elastic.out(1,0.7)',
},
})
.to('.box', {
y: (i) => 80 + i * 40,
opacity: 1,
stagger: 0.4,
})
.reverse();
For that you'd have to create a different tween and use the position parameter to sync both of them:
tl.current = gsap
.timeline({
defaults: {
duration: 2.5,
ease: 'elastic.out(1,0.7)',
},
})
.to('.box', {
y: (i) => 80 + i * 40,
stagger: 0.4,
})
.to('.box', {
opacity: 1,
duration: 10,
stagger: 0.4,
}, "<")
.reverse();
Hopefully this helps.
Happy Tweening!