Jump to content

Search In
  • More options...
Find results that contain...
Find results in...

Items animated along bezier curves slow down at the end of the curve

Recommended Posts

When I'm animating along a bezier curve, the object being animated slows down towards the end of the curve - you can see this very clearly in the attached Codepen which draws a series of dot along the curve to visualize it.  The dots are more tightly clustered towards the end of the curve. 

Is there any way of changing this? I've tried changing the timeResolution but it doesn't fix this. 

See the Pen KdbqEp by looeee (@looeee) on CodePen

Link to comment
Share on other sites

Nice tool. I haven't had a lot of time to investigate it but to answer your question you just need to use a Linear ease on your tween like



let move = TweenMax.to(goose.elem, config.animSpeed, {
type: config.type,
timeResolution : config.timeResolution,
values:  bezier, 
ease: config.ease, 
autoRotate: config.autoRotate,
All tweens use a Power1.easeOut ease by default.
  • Like 3
Link to comment
Share on other sites

Ah, I put the ease inside the bezier definition! Haha, I spent 30 minutes trying to fix this without noticing! 

Thanks, that fixed it. 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.