Али К Posted March 15, 2022 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.
OSUblake Posted March 15, 2022 Posted March 15, 2022 Hi Ali, Did you change something in your pen because everything looks fine to me, including the markers?
Али К Posted March 15, 2022 Author 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.
Solution OSUblake Posted March 15, 2022 Solution 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
Али К Posted March 15, 2022 Author Posted March 15, 2022 Exactly , so the point it was to add this line ? .add(() => ScrollTrigger.refresh()) Many thanks @OSUblake 1
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