Hi,
Thank you very much for your reply. In fact, after reading this page of your documentation position-parameter, I understood how to use gsap timeline correctly, which enabled me to achieve the effect I wanted.
Here is the correction I made with your help:
tl.fromTo(
section.querySelector(".second"),
{ yPercent: 100, y: 0 },
{ yPercent: 0 }
)
.fromTo(
section.querySelector(".third"),
{ yPercent: 100, y: 0 },
{ yPercent: 0 },
">"
)
.fromTo(
section.querySelector(".second-content"),
{ yPercent: -100, y: 0 },
{ yPercent: 0 },
0
)
.fromTo(
section.querySelector(".third-content"),
{ yPercent: -100, y: 0 },
{ yPercent: 0 },
">"
);
Thank you very much
I wish you all the best
Sincerely