Share Posted March 15, 2022 Hello There, I got a problem with my animation when I use the scrollTrigger for the second element. Also , I can't see the markers! any explanation ? Thanks See the Pen gOopGeJ?editors=1010 by itsalimanuel (@itsalimanuel) on CodePen Link to comment Share on other sites More sharing options...
Share Posted March 15, 2022 Hi Ali, Did you change something in your pen because everything looks fine to me, including the markers? Link to comment Share on other sites More sharing options...
Author Share Posted March 15, 2022 Hello @OSUblake, no , sorry I add another link 🥴 the correct link See the Pen gOopGeJ?editors=1010 by itsalimanuel (@itsalimanuel) on CodePen Link to comment Share on other sites More sharing options...
Solution Solution Share Posted March 15, 2022 I noticed several issues, like you had auto misspelled for the body height, and there is no moredeepTrigger element. Perhaps you are looking for something like this? I just add a refresh call right after the page becomes scrollable. See the Pen zYpGaQR by GreenSock (@GreenSock) on CodePen 1 Link to comment Share on other sites More sharing options...
Author Share Posted March 15, 2022 Exactly , so the point it was to add this line ? .add(() => ScrollTrigger.refresh()) Many thanks @OSUblake 1 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