Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
sgershen

need help on Greensock easing

Recommended Posts

Can someone assist me on change this current animation:

TweenLite.fromTo(spot_holder[kNumIterator], 2, {left:pointAX, top:pointAY}, {left:pointBX, top:pointBY, immediateRender:false});

 

to this:

TweenLite.fromTo(spot_holder[kNumIterator], { ease: Bounce.easeOut, y: -500 });

 

or what do I change to make the animation HAVE a bounce effect, zoom effect or any other effect

ball.jpg

Share this post


Link to post
Share on other sites

it all works with "simple animation" but cant figure out how to create new animation

Share this post


Link to post
Share on other sites

Hi @sgershen :)

 

I'm not sure I understand the question. Are you asking how to add a bounce ease? The code you posted is missing an object and the duration. To use a fromTo() tween, you need the starting properties and the ending properties. You could switch to a simple from() tween and only need one set of properties. So, something like this:

TweenLite.from(spot_holder[kNumIterator], 1, { ease: Bounce.easeOut, y: -500 });

 

Looks like you have an array so you could also be talking about staggering those elements with a bounce ease? I'm just not sure what you're asking.

 

Here's some info about staggering:

https://greensock.com/docs/#/HTML5/GSAP/TweenMax/staggerFrom/

 

A CodePen demo would be most helpful to really understand your question:

Thanks and happy tweening.

:)

 

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×