Control How Far a Back Ease Overshoots Its Target. Make Elastic Eases More Rubbery!

by carl schooff on January 14, 2011 · View Comments

in GreenSock Tweening Platform Tips,What I Learned Today

This movie requires Flash Player 9

The first in my “What I Learned Today” category. This is one of those things I can’t believe I didn’t know sooner. With TweenLite and easeParams you can pass in additional ease values that will allow you to fine tune your Elastic and Back eases. I’ve always loved ease:Back.easeOut but now the fun really begins.

Watch the Video

Notes

easeParams works on Elastic and Back… I really wish Bounce had something similar
easeParams works with BOTH TweenLite and TweenMax

Back ease
The Back ease only takes in 1 parameter which is the overshoot value. This higher the value, the more overshoot distance.

TweenMax=TweenMax.to(box1, 2, {x:400, ease:Back.easeOut, easeParams:[1] } );

Elastic ease
The Elastic ease takes 2 parameters. The Elastic ease is based on a sine wave. The first parameter is the amplitude and the second is the period. Read more about amplitude and period.

TweenMax=TweenMax.to(box1, 2, {x:400, ease:Elastic.easeOut, easeParams:[1,2] } );

Download CS4 Source

snorklTV_easeParams_CS4

More

This technique was brought to my attention in the greensock forums. Its one of those little gems of the GreenSock platform that doesn’t necessarily jump out at you but it is so tremendous once you find it.

Post to Twitter Post to Facebook

  • http://www.theinfopreneur.net/ TheInfoPreneur

    wow! i know I'm in over my head, when I think I just read something in a foreign language. :)

  • http://twitter.com/silseed Laszlo Prekop

    Thanks Carl, I’ve just used this today, this tip was a lifesaver!

  • Luxury Yacht

    perfect. I used this today as well. I had a logo scaling to 3000 (AS2) and wanted it to ease:Back.easeIn but it kept flipping. Added “easeParams:[0.3]” to the end of the line and all is good! Thanks man, keep it up.

  • X10

    Hey Carl, was that second tween code meant to be the Elastic Ease example?

  • http://www.snorkl.tv/ carl schooff

    good catch, thanks. i’ll update it later today. appreciate the help!

  • Snefer

    any badass way to use “ease:Back.easeOut, easeParams:[4] in a matter that only last step is eased ?

  • http://www.snorkl.tv/ carl schooff

    i don’t think so. it is what is.

    you can mess with this and see if you get something to your liking:
    http://www.greensock.com/customEase/

    -c

  • http://www.facebook.com/people/Senthil-Kumaran-Chinnathambi/100001008142606 Senthil Kumaran Chinnathambi

    Really a great post man… How to do it Caurina Tweener? Any idea?

  • http://www.snorkl.tv/ carl schooff
  • Merrick Brewer

    Just used this in some freelance work! Whilst busy doing some TimeLine stuff, I remembered that you had posted this entry. Love the ease:BackInOut, but wanted to tighten it up a bit. So thanks again Carl!!!!

  • Arnaudnabos

    F******* GREAT!!!
    thank you man

  • http://www.facebook.com/people/Олег-Всильдеревьев/100001122254332 Олег Всильдеревьев

    Cool! Is there any info how to conrol Elastic in the way like this?)

  • http://www.snorkl.tv/ carl schooff

    Hi, I mentioned Elastic a few times in the post above. I don’t know what more you would like to know. I think you will have fun experimenting, give it a try.

    thanks

blog comments powered by Disqus

Previous post:

Next post: