Sukru Posted March 8, 2022 Share Posted March 8, 2022 Hello, what can I do to play the animation in the codepen link in reverse? See the Pen ef265f243c8698341c05a76596c2f8fc by akapowl (@akapowl) on CodePen Link to comment Share on other sites More sharing options...
OSUblake Posted March 8, 2022 Share Posted March 8, 2022 Just swap the from and to parts around. 😉  const anim = gsap.fromTo("#cover", { attr: { r: () => { return window.innerHeight/3 } } }, { attr: { r: () => { return r } } });   2 Link to comment Share on other sites More sharing options...
Sukru Posted March 9, 2022 Author Share Posted March 9, 2022 15 hours ago, OSUblake said: Just swap the from and to parts around. 😉  const anim = gsap.fromTo("#cover", { attr: { r: () => { return window.innerHeight/3 } } }, { attr: { r: () => { return r } } });   Thank you very much 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