Jump to content
Search Community

Text Reveal Effect

swatip test
Moderator Tag

Recommended Posts

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 

Link to comment
Share on other sites

  • 3 months later...

Thank you so much for the quick answer @akapowl You are a superhero indeed :) Although I have to say It's not really "my code." I just took what Zach wrote earlier and tried using that in a loop. So all credit should go to you superheroes.

 

Have a good day ahead.

 

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...