theRemy79 Posted February 25, 2022 Share Posted February 25, 2022 Hey all! Was hoping someone could tell me why tl.pause and tl.play on my button isn't affecting the repeating loop. Thanks! See the Pen XWzByEN by theRemy79 (@theRemy79) on CodePen Link to comment Share on other sites More sharing options...
Solution Trapti Posted February 25, 2022 Solution Share Posted February 25, 2022 Hey, welcome to forum @theRemy79 You are trying to pause tl which you are using again inside a gsap.to tween. You assign the gsap.to tween to a variable a then apply play and pause. See the below pen See the Pen 1bbeafecae5a5c69dd2bbf9cebbc8f62?editors=0011 by tripti1410 (@tripti1410) on CodePen 2 Link to comment Share on other sites More sharing options...
OSUblake Posted February 25, 2022 Share Posted February 25, 2022 Hi @Trapti It looks like your pen is missing. Did you by chance enter the wrong URL? Link to comment Share on other sites More sharing options...
GreenSock Posted February 25, 2022 Share Posted February 25, 2022 Yep, @Trapti is correct. See the Pen gOXjyGO?editors=0010 by GreenSock (@GreenSock) on CodePen Link to comment Share on other sites More sharing options...
Trapti Posted February 25, 2022 Share Posted February 25, 2022 @OSUblake Thanks for letting me know. Updated pen. URL was correct it was a private pen. My default setting is private pens so forgot to make it public. 1 Link to comment Share on other sites More sharing options...
OSUblake Posted February 25, 2022 Share Posted February 25, 2022 Very strange because private pens should work. 🤷♂️ Link to comment Share on other sites More sharing options...
Trapti Posted February 25, 2022 Share Posted February 25, 2022 Ideally yes but thats the only change I did, no clue 🙁 Link to comment Share on other sites More sharing options...
theRemy79 Posted February 25, 2022 Author Share Posted February 25, 2022 Thanks @Trapti! Brilliant 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