omi Posted October 1, 2022 Share Posted October 1, 2022 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 More sharing options...
omi Posted October 1, 2022 Author Share Posted October 1, 2022 anyone can comment on this? Link to comment Share on other sites More sharing options...
mvaneijgen Posted October 1, 2022 Share Posted October 1, 2022 @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 2 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now