Jump to content
Search Community

Using Progress on a Bezier Curve

Duncan Budapest test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

I have a problem tweening and using progress on a bezier curve


See the Pen pxdgF by DuncanBudapest (@DuncanBudapest) on CodePen


I hope the codepen makes the situation clear.


In the code the object 'steps' around the curve. As I understand progress represents the complete tween so any position can be represented by 0 to 1. In my example my total progress is 0.5 but the object tweens to 75% of the track.


In the complete code there are multiple objects and there is some degree of control using the timeline. I've stripped the code down to make it easier to understand.

Link to comment
Share on other sites

Hi and welcome to the GreenSock forums.


Thanks for the CodePen demo.


You need to add ease:Linear.easeNone to your config object:


var config = {bezier:{type:"cubic",curviness:1, values:track_1, autoRotate:true},  paused: true, ease:Linear.easeNone};

  • Like 2
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.
  • Create New...