djoe_dev Posted October 18, 2020 Share Posted October 18, 2020 In the attached codesandbox, I am animating a circle along the motionpath to scrub with scrolltrigger. I would love to have the animated circle stay within the center of the viewport from start to finish. As it is now, the circle speeds up and escapes the viewport, then slows down a lot at the end. I thought maybe this was caused by an easing effect so i set easing to none but did not help. I wonder why this is? https://codesandbox.io/s/frosty-poitras-t478y?file=/src/App.js Link to comment Share on other sites More sharing options...
Solution GreenSock Posted October 18, 2020 Solution Share Posted October 18, 2020 It looks like you just accidentally nested the "ease" inside the motionPath:{} object. // BAD: .to(... { motionPath: { ease: "none", ... } }); // GOOD: .to(... { ease: "none", motionPath: { ... } }); Does that help? 4 Link to comment Share on other sites More sharing options...
djoe_dev Posted October 18, 2020 Author Share Posted October 18, 2020 that's it! thank you thank you thank you 😀 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