Jump to content
Search Community

Text Opacity bug & workaround

ApplePI
Moderator Tag

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

Posted

I found a 'bug'. In case two divs are placed on top of each other and the opacity of both is animated, text in the upper div will dissapear when the tween is completed. I tested this 'bug' in serveral browser and effect was the same overall.

 

The workaround is to set the opacity to '0.99' instead of '1':

 

new TweenLite(myText, 2, {css:{opacity:0.99}, delay:3});

 

PS. In the bottom div contained a image, the upper div is only text.

Posted

Are you sure? I cannot reproduce that problem at all. Check out the codepen:

See the Pen 729a56bbf760147d7f49ee1fb6947a4a by GreenSock (@GreenSock) on CodePen.

 

Nobody else has reported any such behavior either - I'm really curious to see an example. Could you post a set of files that demonstrates the issue? Just zip them and post them here (click the "More Reply Options" button)

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.
×
×
  • Create New...