Hello there, I am using the above scrolltrigger code but I wanted to add toggle class to the texts when comes into view. For example in the article element i wanted to add class. I tried to add it but the class is adding but not getting toggled. Here is the code i tried...
https://codepen.io/mr_ashish/pen/JjejpGv
Edit: I have updated my pen, now the class is getting toggled in each article element but upon scrolling back to top its glitching, can you guys help me fix that.
Thanks,
Ashish