Hi Greensock universe,
IE is giving me grief, as expected. After a day of fighting with this, I decided to come to you for a shoulder and some sound advice.
We have an animation working BEAUTIFULLY in all browsers but IE8 (haven't even looked IE7 yet, not sure if I ever will). At one stage, our main character gets scaled down, which is done using the code below.
TweenMax.to(user.sprite(), 1, { scale: 0.6,
onStart: function() {
//Kick spritesheet animation in
}
});
This character has a few different sprite sheets for it so it can walk and jump around the page. The sprite sheet animation is done with background-position management (this is NOT done using TweenMax).
All browsers report the full width of the div that has the character in it, even when the element is scaled down (144px). We use this width to updated the background-position for the spritesheet animation.
HOWEVER
IE8 reports a different width as it scales the object down (86.4px final width), and, because the sprite sheet file is based on a 144px width, it all turns to custard. I attached an image of how the character looks after both the scaling and sprite sheet animations are completed.
All other browser play ball with no problems what so ever.
Any ideas? Help me please?