exploitoholic

treating nested timelines like AE pre-comps

Recommended Posts

I have a very basic timelineMax question that wouldn't even justify a code-pen.

 

After nesting a timeline using .add() how do I manipulate the nested timeline's properties such as scale, rotation and autoAlpha?

I simply want to rotate a nested timeline on the main timeline, much like an after effects pre-comp. I'm sure the answer is basic but I'm out of ideas and google searches.

 

Thanks for assisting

 

Share this post


Link to post
Share on other sites

Hi @exploitoholic :)

 

Welcome to the forum.

 

There may be a bit of a misunderstanding here. A nested GSAP timeline isn't the same as a nested composition in AE. A timeline is basically a collection of tweens. You can add any tweens to that timeline and manipulate any properties of any element. You can't animate properties of the timeline itself. You can do certain things to the nested timeline like timeScale(), pause(), play() etc. But you can't rotate or change the opacity of a timeline. All that is done with the individual tweens on that timeline.

 

Does that make sense?

 

Happy tweening.

:) 

  • Like 4
  • Thanks 1

Share this post


Link to post
Share on other sites

Yes that makes sense. I was hoping to build an animation with tweens, group them and then animate the group. Oh well.

 

Thanks for the explanation @PointC

 

Share this post


Link to post
Share on other sites

That'll come down to how you structure your HTML/SVG (or whatever you're animating). With an SVG, for example, you can use the <g> tag to wrap elements and target the child elements individually or as a group. 

 

Happy tweening.

:)

 

  • Like 4

Share this post


Link to post
Share on other sites

You can also target multiple elements with a tween as well if you want them to share the same animation, giving them a common class or assigning them to an array etc... to create groups of elements.

  • Like 4

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.