Jump to content
GreenSock

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

Getting autoAlpha from TweenMax api

Recommended Posts

Hey jparrott, 

 

I'm not exactly sure what you mean. Do you mean is there a way to replace 

 

TweenMax.from([square],  3, {opacity:0});

with 

TweenMax.from([square],  3, {autoAlpha:0});

?

 

If so, the best way would be to use a text editor's find and replace functionality.

 

If not, please clarify what you're asking.

Link to comment
Share on other sites

Ah, I understand what you're asking now. There is a way to do this in ES6 only, but it'd require changing your keys anyway. See this StackOverflow post for more information. 

 

So I'd just use a text editor and replace all of the opacitys and alphas with autoAlpha.

  • Like 3
  • Thanks 1
Link to comment
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.
×