TCO Posted October 21, 2022 Share Posted October 21, 2022 Hi, As you can see on the Codepen, I try to move the green object when it touch the blue trigger but during the animation, the green object move too fast compared to the blue trigger. How can I fix that? Thanks! See the Pen LYmwNoJ by thibautcollin-be (@thibautcollin-be) on CodePen Link to comment Share on other sites More sharing options...
Solution mvaneijgen Posted October 21, 2022 Solution Share Posted October 21, 2022 Every tween gets a default ease: "power1.out" which will make it move fast and then slow down at the end. With scrolling animation you don't really want that, so I always like to make a mental note to set ease: "none" when animating something on scroll See the Pen ZEogOyr by mvaneijgen (@mvaneijgen) on CodePen 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