Jump to content
GreenSock

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

Tween Override?

Recommended Posts

Hi Everybody,

 

Is there a command of some kind that I can assign a tween to an element and it just trumps all other tweens?

 

Like my scenario is I have a media unit where it loops with a button. The first time around the button doesn't show up until the end of the sequence. But every other loop it stays there the whole time no matter what it's told to do down the timeline.

 

Is there a command of attribute in the API that does that?

 

 

Share this post


Link to post
Share on other sites

If by trumping you mean "undoing all property changes done by other tweens", you're looking for `clearProps: "all"`.

  • Like 2

Share this post


Link to post
Share on other sites

Or if you're talking about overwriting, you can do overwrite:true to make it kill all other tweens of that object immediately. 

 

It'd sure help if you had a codepen demo we could look at for the most basic/simple scenario. 

  • Like 2

Share this post


Link to post
Share on other sites
47 minutes ago, Shaun Gorneau said:

If by trumping you mean "undoing all property changes done by other tweens", you're looking for `clearProps: "all"`.

 

Hey guys, thanks for the response. Y'all are great as always. You know, I figured out something where I made a duplicate of the button I wanted to sustain after the first loop.  That seemed to do the trick.

 

I'm not quite sure how one would use a conditional override in Timeline other than overwrite:true, but thought I'd ask.

 

Thanks anyway!

 

 

 

Share this post


Link to post
Share on other sites

From my loose understanding of the question I thought you could call a function at the end of the timeline that would trigger an individual tween outside the timeline that would reveal the button. once it's revealed, nothing in the timeline would affect it. But as mentioned before, even the simplest of demos goes a long way in helping us understand what you need. glad you found a solution.

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.

×