Custom easing with TweenLite

Bounce.easeIn getting you down? Strong.easeOut not quite right? Well there are a couple of ways to use completely custom easing curves with TweenLite.

The first is the official way, which is great ... the problem is of course that it costs money. And we're in the middle of a financial crisis over here!

So this guy has also written his own way of doing it. You draw the curve using his flash app (terrible interface, but it works) and then use the resulting array of bezier points with the ZigoTween class.

Here's a code example, and the files you need are attached to this post. Happy easing!

var zt:ZigoTween = new ZigoTween([{Mx:0,Nx:0,Ny:-1000.00000,My:0,Px:500,Py:500},{Mx:500,My:-500}] );
TweenLite.to(mc,1,{x:200,ease:zt.ease});

ZigoTween.zip (976.00 bytes)

rokkan_bezierdefiner.swf (31.75 kb)

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Related posts

Comments are closed