RichSock
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by RichSock
-
-
Thank you both for the solutions and ideas,
I think I will experiment with the idea of setting a variable like you've suggested, I will let you know how I get on.
-
Hi,
It's a pretty simple one but I can't seem to find any other posts which have covered this.
I'm wondering if it's possible to NOT animate elements which are already in the viewport on load when using scrollTrigger.
In my codepen example the text within the first section would be static, but the text in the second and third sections would slide up. I'm unable to simply remove the class from the first section as the content will be pulled via a CMS, also the page could potentially be refreshed half way down, in that case whatever elements are then in the viewport at that point in time would need to be static.
Many thanks
ScrollTrigger, don't trigger elements in viewport onload
in GSAP
Posted
I managed to get it working, here was my final code:
Thank you for your help