Jump to content
Search Community

SVG Animations in IE

dxc
Moderator Tag

Go to solution Solved by jamiejefferson,

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

  • Solution
jamiejefferson
Posted

IE doesn't support CSS transforms on SVG elements. You need to use the transform attribute of the element, although that doesn't really help with the transformOrigin.

e.g.

function svgTransformIE(){
  // include a check for IE first?
  var t = this.target;
  t.setAttribute('transform', t.style.transform)
}

// transform origin doesn't have an equivalent attribute so it won't apply in IE
TweenMax.to(foo, 1, {rotation:100, transformOrigin:"129px 154px", onUpdate:svgTransformIE});

Not sure if there's a workaround for transformOrigin...

Posted

Hi dxc  :)

 

i think if that's really important to work in IE , you can put the SVG parts into same size Div and animate the divs or use Raphaël / another SVG JavaScript Library .

Posted

Oh, I didn't realize transformOrigin wouldn't work in IE. That makes life a little tougher. I may have to just be content with the animation not working in IE . . . stupid IE. 

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