zhewar Posted August 14, 2022 Share Posted August 14, 2022 Hi, I have this animation when the page load, when I scroll while the animation play it mix the design with other section, I want to stop the scrolling till the animation end, or stay in first section till the animation end the user can scroll down Note: I have replaced my real image with those blue circles. See the Pen LYdgyRw by zhewar799 (@zhewar799) on CodePen Link to comment Share on other sites More sharing options...
GreenSock Posted August 14, 2022 Share Posted August 14, 2022 There are many ways you could do this. Probably the simplest one is to set the body's overflow to hidden initially. Then in an onComplete of your initial animation's timeline, set it back to "auto". Sorta like this: See the Pen ZExqKqw?editors=0010 by GreenSock (@GreenSock) on CodePen Happy tweening! 1 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