Jump to content
Search Community

Bug: opacity is ignored in IE8 when 'x' property is present

Impirator
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

CodePen (I don't think this site supports IE8, so this may not be useful): 

See the Pen kxhfD by anon (@anon) on CodePen.

 

Problem

Opacity isn't animated when there is an x-translation in Internet Explorer 8.

 

Code

// no opacity animation in IE8, works in modern browsers

var element = document.getElementById('box');
var animation = {
  x: -50,
  opacity: 0
};

TweenMax.from(element, 1, animation);

a

Extra note

If you replace the x with marginLeft, the opacity correctly animates.

 

 

 > Thank you so much for all the hard work, guys.  It's really, really appreciated. <

Posted

Hmm...I just tested your code and it worked great for me in IE8 with the latest version of GSAP. Maybe you're using an old version? And are you using the "real" IE8 or some emulator? Emulators are known for rendering things wrong :)

Posted

Thanks for the prompt reply!  I was in fact using IE's debug tools to put it into IE8 mode, so I'll bet that's what it was.  Sorry to make waves over nothing!

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