Nisseboi Posted December 13, 2021 Share Posted December 13, 2021 Hello Ive just started exploring Gsap and I was trying to implement it into my current project where im making a scroll section where the text is meant to pin and when the text exit Viewport it changes image and the next image blinks into viewport. The TLDR is How can I change image with ScrollTrigger Link to comment Share on other sites More sharing options...
Cassie Posted December 13, 2021 Share Posted December 13, 2021 Hi @Nisseboi, Please check out the scrollTrigger docs and the demos. There are a lot of examples in there to help you get started.https://greensock.com/st-demos/ Link to comment Share on other sites More sharing options...
Nisseboi Posted December 13, 2021 Author Share Posted December 13, 2021 Thanks @Cassie Didn't find the answer I was looking for but I figured out how to do it anyway now the next trouble I run into is that my active element from"toggleClass" it would seem my active elements have a pre styling applied where would I change this Link to comment Share on other sites More sharing options...
Solution Cassie Posted December 13, 2021 Solution Share Posted December 13, 2021 As we mention in the forum guidelines - We can usually help more effectively if you provide a minimal demo, codepen is great for this. If you pop an example in here I'll take a look! 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