Jump to content
Search Community

tweenmax bezier normalise speed?

swiftmend test
Moderator Tag

Recommended Posts

Hi,

 

Was wondering if it's possible to normalise the speed of the movement through bezier points EG if two points are close together it'll take 1 second, if two points are reall far apart, they still take 1 second, but obviously the animation goes a lot faster to cover the gap.

 

Just wondering if it's possible to normalise the speed of the whole animation?

Link to comment
Share on other sites

The plugin doesn't have that capability right now, but you could create your own class that does that stuff on its own and then use TweenLite/Max to tween a property (getter/setter) of that class which in turn does the math and applies the bezier stuff. Beware, though, that it is MUCH more processor-intensive to calculate normalized speed along a bezier.

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...