mixagai Posted July 9, 2025 Posted July 9, 2025 Hello! I need some help. I can't figure out how I should recalculate the dimensions when resizing a page. When I resize the page, the dimensions of the .element don't change and it goes off screen. How can I recalculate them? See the Pen GgpKVJg by mixagai (@mixagai) on CodePen.
Solution Rodrigo Posted July 9, 2025 Solution Posted July 9, 2025 Hi @mixagai and welcome to the GSAP Forums You can use GSAP Context and a GSAP delayedCall in order to revert everything inside the context scope and create the Flip animation again, something like this: See the Pen zxvYxae by GreenSock (@GreenSock) on CodePen. Hopefully this helps Happy Tweening!
mixagai Posted July 9, 2025 Author Posted July 9, 2025 Thank you very much! You have solved my problem. I'm going to learn how these functions work👍 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