[Tweener] custom parameters documented?
Jason F. Mortara
JFM at bluefang.com
Wed Jan 7 16:33:19 PST 2009
Thank you very much for the quick reply!
I'm not sure I follow 100%. Any chance you could give me a code example
to update these to have another (naturally decaying) bounce at the end
of the tween?
Tweener.addTween(my_mc,{_x:newX, time:.5, transition:
"easeInOutElastic});
Tweener.addTween(my_mc,{_x:newX, time:.5, transition: "easeInOutBack});
Thanks,
Jfm
-----Original Message-----
From: tweener-bounces at lists.caurinauebi.com
[mailto:tweener-bounces at lists.caurinauebi.com] On Behalf Of Zeh Fernando
Sent: Wednesday, January 07, 2009 7:26 PM
To: tweener at lists.caurinauebi.com
Subject: Re: [Tweener] custom parameters documented?
You're right. That was... an oversight. It's missing.
Anyway, they use Robert Penner's original equations' parameters, but
the properties are renamed. The allowed parameters are as such:
ease*Back:
"overshoot": higher means greater overshoot (0 produces cubic easing
with no overshoot, and the default value of 1.70158 produces an
overshoot of 10 percent).
ease*Elastic:
"amplitude": amplitude of elastic movement. default is the difference
between starting value and target value.
"period": period of the elastic movement. default is 1/3 of the time.
Using the back parameters (overshoot) is usually easy. Using elastic
parameters can be a bit more complicated.
HTH,
Zeh
On Wed, Jan 7, 2009 at 8:35 PM, Jason F. Mortara <JFM at bluefang.com>
wrote:
> Hi, is there a place where custom parameters are documented? For
example on
> this page, an "overshoot" param is mentioned... but I can't find any
others.
> I'd like to give an elastic tween a few more bounces, for example.
>
>
>
> http://hosted.zeh.com.br/tweener/docs/en-us/
>
>
>
> thanks!
>
>
>
> jfm
>
> _______________________________________________
> Tweener mailing list
> Tweener at lists.caurinauebi.com
> http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
>
>
_______________________________________________
Tweener mailing list
Tweener at lists.caurinauebi.com
http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
More information about the Tweener
mailing list