zofia Posted October 11, 2021 Share Posted October 11, 2021 Hi, I have a question regarding my animated section dividers. When I change the size of the browser window the divider "jumps" ugly (it is not smooth as it was before resizing the window): After refreshing the browser it's fine again. How can I prevent it? See the Pen WNEbeQe by zofiaifoz (@zofiaifoz) on CodePen Link to comment Share on other sites More sharing options...
zofia Posted October 11, 2021 Author Share Posted October 11, 2021 OK, I found a way to do this. I just changed gsap.from to gsap.to (and updated the heights of course - so in CSS i have initial values). Now everything works as it should when changing the size of the browser window. See the Pen RwZNRJa by zofiaifoz (@zofiaifoz) on CodePen 2 Link to comment Share on other sites More sharing options...
Cassie Posted October 11, 2021 Share Posted October 11, 2021 Awesome! Nicely figured out Zofia 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