Hello,
i want to do loop-vertical text slider.
i did it but I have error on first screen.
The numbers seem to be nested, and after the first boot, it gets better.
//GSDevTools.create();
When I run the command, the problem is solved but I cannot detect the error.
They should come with opacity:0 on first boot because CSS is defined.
( The problem is fixed in the 2nd round. )
(
by the way, I like the codepen script below, but it was written in gsap 2.0. I couldn't upgrade to 3.0 so I rewrote it. https://codepen.io/sawacrow/details/ZEMNZWY
)
Question 2:
when the animation on the first line is loop, so that it starts as the last animation starts, i.e.
The "<" operator does not work because there is no element before it.
how can i solve this?
tl2.fromTo(".anim-text h1", {opacity: 0, y: -100}, {opacity: 1, y: 0, duration: 1, ease: ease}, "<");
tl2.fromTo(".anim-text h1", {opacity: 1}, {opacity: 1, duration: 1, ease: ease});
tl2.fromTo(".anim-text h1", {opacity: 1, y: 0}, {opacity: 0, y: 100, duration: 1, ease: ease});
tl2.fromTo(".anim-text h2", {opacity: 0, y: -100}, {opacity: 1, y: 0, duration: 1, ease: ease}, "<");
tl2.fromTo(".anim-text h2", {opacity: 1}, {opacity: 1, duration: 1, ease: ease});
tl2.fromTo(".anim-text h2", {opacity: 1, y: 0}, {opacity: 0, y: 100, duration: 1, ease: ease});
tl2.fromTo(".anim-text h3", {opacity: 0, y: -100}, {opacity: 1, y: 0, duration: 1, ease: ease}, "<");
tl2.fromTo(".anim-text h3", {opacity: 1}, {opacity: 1, duration: 1, ease: ease});
tl2.fromTo(".anim-text h3", {opacity: 1, y: 0}, {opacity: 0, y: 100, duration: 1, ease: ease});