Jump to content
GreenSock

isaballoon

autoAlpha fade from 0 to .7, possible?

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Is there a parameter setting for autoAlpha enabling you to fade up to a value of <1? If not, what would be next best solution?

 

Thanks

Link to comment
Share on other sites

Hi,

You could try a fromTo tween, like that the from value (autoAlpha:0) is render immediately and then GSAP takes it to 0.7, something like this:

TweenMax.fromTo(element, 1, {autoAlpha:0}, {autoAlpha:.7/*here you can add callbacks, delay, ease, etc*/});

Check the api reference for more info on this method.

 

Hope this helps,
Cheers,
Rodrigo

Link to comment
Share on other sites

Excellent. I'll give it a shot. Thanks Rodrigo!

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.
×