Share Posted September 11 It looks like the timeline is getting stacked when scrolling fast up down, up down (not the konami code) so it leaves and enter the trigger. I've tried using: tl.pause() inside the onEnter, etc.. but this won't execute anything and pauses it without doing something else tl.kill(), this won't even start it 😛 See the Pen qByoXXR by indy-meermans (@indy-meermans) on CodePen Link to comment Share on other sites More sharing options...
Solution Solution Share Posted September 11 You can set overwrite: true, in your tween, so that it will overwrite current tweens already playing. See the Pen gOZWbJb?editors=0010 by mvaneijgen (@mvaneijgen) on CodePen I don't know what you mean with the following 40 minutes ago, IndM said: tl.pause() inside the onEnter, etc.. but this won't execute anything and pauses it without doing something else tl.kill(), this won't even start it 😛 4 Link to comment Share on other sites More sharing options...
Share Posted September 11 idk what you mean but I thought you wanted to create an intro animation for the text and hook it to the scroll so I made it this way See the Pen RwEVNqz?editors=0010 by ahmed-attia (@ahmed-attia) on CodePen also, take a look at the new clamp it will help you in the future if you want to animate the text on the hero section 3 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