Share Posted October 21, 2022 Guys a question. why the Onleave runs before even we scroll down? See the Pen jOxgzJY by emdesigner-or (@emdesigner-or) on CodePen Link to comment Share on other sites More sharing options...
Solution Solution Share Posted October 21, 2022 Because you literally invoked the function and assigned the RESULT of that function call to the onEnter. // BAD onEnter: a() // GOOD onEnter: a 1 1 Link to comment Share on other sites More sharing options...
Author Share Posted October 21, 2022 19 minutes ago, GreenSock said: Because you literally invoked the function and assigned the RESULT of that function call to the onEnter. // BAD onEnter: a() // GOOD onEnter: a Thanks 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