Sorry, I'll try to explain myself better.
I tried to insert a text animation every time I change slides.
The problem I would like to solve is:
when I change slides, the text, both incoming and outgoing, does not create the desired effect:
.set(splitPrevious, { autoAlpha: 1, yPercent: 0, xPercent: 0})
.to(splitPrevious, {
duration: 1.2,
autoAlpha: 0,
yPercent: 60,
xPercent: 20
}, 'start')
.set(splitCurrent, { autoAlpha: 1, yPercent: 0, xPercent: 0})
.to(splitCurrent, {
duration: 1.2,
autoAlpha: 0,
yPercent: -60,
xPercent: 20
}, 'start')
https://codepen.io/umberto/pen/MWxaqNW
I hope I explained myself better
Thanks for your time