Jump to content
GreenSock

omi

Text reveal effect when particular section enter in viewport using gsap scrolltrigger

Recommended Posts


How i can add the  text reveal effect on all headings and content  when particular section enter in viewport because  i don't want to add the static id for each section. so please assist me anyone how i can achieve this effect. 

See the Pen XWqqmgv by omi-bhatia (@omi-bhatia) on CodePen

Link to comment
Share on other sites

anyone can comment on this?

Link to comment
Share on other sites

@omi please be patient, we aim to answer anyone within a day or so, you've only asked your question 4 hours ago on a Saturday. 

 

You need to scope your elements to each forEach otherwise it will just pick the first one and be done with it. Then you also need to set your start and end triggers correctly, so that the animation plays when the element is in the view port. 

 

Again please be patient next time, most of the people who answer questions here are volunteers.

 

See the Pen XWqqKqW?editors=0010 by mvaneijgen (@mvaneijgen) on CodePen

  • Like 2
Link to comment
Share on other sites

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.
×