Jump to content

tweening - scale and translate simultaneously


Recommended Posts

How can I scale and translate a container simultaneously?

I've tried three tweening libs  (tweenjs, charm & tweenlite) -  they all display the same result where it will either scale or translate the container (whichever is called first), but not both simultaneously. 


Link to comment
Share on other sites

By default, the tweens start playing after the last one has finished. If you want them to happen at the same time, you need to use the position parameter


For example, this sets the starting point for all tweens at time 0 of the timeline, which is what you require

var animation=new TimelineLite();


Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

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.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...