I just want to trigger the effect when scroll hit the screen for one time only
This is the code for text reveal i just want to add scroll trigger effect in this
const childSplit = new SplitText("h1", {
type: "lines",
linesClass: "split-child"
});
const parentSplit = new SplitText("h1", {
// type: "lines",
linesClass: "split-parent"
});
gsap.from(childSplit.lines, {
duration: 1.5,
yPercent: 100,
ease: "power4",
stagger: 0.1
});
Thank you for replying