Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Vic Emond

Tweening CSS alpha on text with dropshadow filter in IE9

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

If I apply an alpha tween:

 

TweenMax.to($('.myElementWithTextShadow'), 0.5, {css:{autoAlpha:1}});

 

...to text that has a text-shadow/filter:dropshadow - in IE9 - I see a black background behind the element as it fades in. It goes away once the tween has completed.

 

Any thoughts on this?

Link to comment
Share on other sites

That appears to be a bug in IE and is unrelated to CSSPlugin or TweenLite/Max. Here's the proof: don't do any tweening and apply these CSS styles to an object and you'll see the oddity:

 

text-shadow:4px 4px #900;
font-size:32px;
filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#900');
opacity:0.5;

 

If anyone knows of a workaround, please chime in.

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