Jump to content
Search Community

IE8 reverse() + backgroundPosition bug

Klas test
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

Hi,

 

Using IE8 (or IE9 in IE8 Browser and Document mode) I get the following error when tweening background-position and calling reverse():

 

Invalid argument: TweenMax.min.js, line 15 character 58215

 

9702392.png

 

It seems specific to trying to tween the backgroundPosition in combination with using reverse().

 

I've created a JS Fiddle to reproduce the bug here: http://jsfiddle.net/ytKJq/4/

 

Any ideas how to get around this?

 

Thanks

Klas

Link to comment
Share on other sites

Ah yes, IE8 (and prior) incorrectly report "backgroundPosition". Instead, they only report backgroundPositionX and backgroundPositionY (which aren't consistently supported in other browsers). Fun! I applied a fix, though, in the latest version of CSSPlugin (posted a few minutes ago). Thanks for pointing out this issue. Sorry about any confusion.

 

Again, the latest version should work well for you. Let us know if that's not the case.

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