Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Nico D

Nested Animations Problem

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!

 

I noticed that when I nest animations (divs within divs within divs) in order to control animations, they play fine in modern browsers, but IE7 and IE8 only displays the animation to the outer div.

 

I'm using simple TweenMax tweens for this in conjunction with jQuery, like this:

 

TweenMax.from($("#cblattR"), 3, {css:{ rotation:90, scale:0.7}, ease:Power4.easeOut, delay:0.6});
TweenMax.from($("#PLANT"), 4, {css:{top:"300px", rotation:10, scale:0.2}, ease:Power4.easeOut});

 

Any ideas why this is and how to fix it?

 

Thanks!

Nico

Link to comment
Share on other sites

Older versions of IE especially 8 don't allow transformations set on parent objects to be inherited by their children. Sometimes setting filter:inherit on the child div solves the problem:

 

http://jsfiddle.net/ULgG6/

 

it also helps if your child and parent have position:absolute.

 

Unfortunately there isn't much that CSSPlugin can do when browsers have certain flaws baked into them.

Link to comment
Share on other sites

Ah, good to know. Thanks!

 

Well, that's disappointing. And filter:inherit didn't change anything.

 

So it's probably best to test really early in IE8 and see what it does with the animation.

 

And keep things simple -- for compatibility's sake

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