filippos Posted February 9, 2023 Share Posted February 9, 2023 Hi, I would like to do the animation only once and then remove the pinSpacing after the animation is done. I tried different things but still don't know how to do it. I would like pinSpacing not to be visible when scrolling up and it would look as if there was no animation. See the Pen mdjZdOY?editors=1010 by FilipGC (@FilipGC) on CodePen Link to comment Share on other sites More sharing options...
filippos Posted February 9, 2023 Author Share Posted February 9, 2023 update: I found this: onLeave: function (self) { self.scroll(self.start); self.disable(); self.animation.progress(1); } ...and this works, but when I put this on a scrolltrigger timeline the animation is interrupted. When I use onComplete - nothing happens. Link to comment Share on other sites More sharing options...
Cassie Posted February 9, 2023 Share Posted February 9, 2023 Hiya! Could you show me on this demo what you mean by 'interrupted'? See the Pen mdjZPyq?editors=0011 by GreenSock (@GreenSock) on CodePen 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