Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
sepokroce

SVG symbols rendering issues in Chrome and IE on Windows 7 SP1 x64

Recommended Posts

GreenSock does not render animated SVG symbols properly in Chrome (44.0.2403.155.m) and IE 11.0.21 on Windows 7 SP1 x64.

 

Please have a look at the Codepen example.

 

The animations render properly in Firefox 40.0.2. There is no animated scale in IE and nothing is animated in Chrome.

See the Pen LVoVZN by anon (@anon) on CodePen

Link to comment
Share on other sites

Hey sepokroce  :-) ,

 

I'm sure someone smarter than myself will jump in and figure out why that doesn't work in Chrome and IE. In the meantime, I did a quick fork or your pen and added a class to each symbol and animated the class rather than the ID and it works in all browsers.

 

See the Pen WvBrQR by PointC (@PointC) on CodePen

  • Like 2
Link to comment
Share on other sites

PointC is right, although the class has nothing to do with it. You could have selected it using the "use" tag. Symbols aren't rendered. 

Link to comment
Share on other sites

Hey Blake,

 

I was curious as to why his original pen is working in Firefox? Is symbol rendering different in Chrome?

Link to comment
Share on other sites

That I don't know. I've really don't mess around with symbols or use. Maybe somebody else could answer that one.

Link to comment
Share on other sites

That's not a GSAP bug - it's just that many browsers don't support that behavior at all on symbols. You can try yourself directly:

speaker.style.opacity = "0.3";

You should animate the instances themselves, not the original symbol. I know, it'd be really cool if you could animate the symbol and have it affect all instances. I wish the browsers supported that too.

  • Like 5
Link to comment
Share on other sites

Thanks for testing this and for all the replies, guys. Animating symbol instances rather than the symbol itself makes quite a difference.

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