pysilla Posted November 19, 2021 Share Posted November 19, 2021 Hi ! I am using gsap very occasionally for simple things and I sometimes have this kind of problems I can not pass through. Every section in left column has corresponding div with img. Everything is working fine until I go back again (after I scrolled to very bottom). Now I want to reverse action (that's why I put "reverse" in toggleAction) but when i pass "end" marker my img changes. It's not behaviour I want - I would like it to change when it meets "start" or "end" (second one) to keep releation between left col and right. See the Pen Yzxgqao by Pysilla (@Pysilla) on CodePen Link to comment Share on other sites More sharing options...
akapowl Posted November 19, 2021 Share Posted November 19, 2021 Welcome to the forums @pysilla If I understood you correctly, you actually want to reverse the tween onLeaveBack then? toggleActions: "play none none reverse" See the Pen 26cdf3a42613f10b0336396aa0e5afee by akapowl (@akapowl) on CodePen 2 Link to comment Share on other sites More sharing options...
pysilla Posted November 19, 2021 Author Share Posted November 19, 2021 Oh gosh, I think I understood that thrid argument does that instead of forth. So easy ! Thank you so much. 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