Animation breaks if I apply CSS transformation on div of GSAP staggered div
-
Hi guys,
I’ve found a situation when the animations breaks and and I’m not sure if it’s because it’s not possible, or there’s a bug.
I have an outer div (Level 1) with three inner divs (Level 2).For the outer div, I switch on GSAP and choose Stagger as the animation type (I tried with both scaling and opacity).
On it’s own, this works.
However, if, for each of the 3 inner divs (Level 2), I set the CSS Transformation to scale on hover, the staggering animation only works on the first inner div and the CSS transformation doesn’t happen at all for any of the inner divs.Interestingly, it actually all works fine in the editor.
I have found a workaround, however, if insert another div (Level 3) inside the inner div (Level 2) and apply the CSS transformation to the inner div (Level 3), so there is effectively a div layer separating the GSAP and the CSS Transformation, then it works.
Cheers,
Em
- The topic ‘Animation breaks if I apply CSS transformation on div of GSAP staggered div’ is closed to new replies.