Jump to content
Search Community

SVG in Safari (so many issues!)

Superfein test
Moderator Tag

Recommended Posts

Hi there Gsappers,

 

I designed and animated several SVGs and I thought they were working perfectly...then I looked at them in Safari. Ouch!

 

I've shared the first one here, perhaps more to follow. This triangle disappears completely in Safari on MacOS. It reappears when I remove the filter attribute on the polygon but that kills the animation. 

 

Thoughts on how to make this Safari-friendly?

 

Any assistance appreciated! 

 

Adding another Codepen here of another issue, notice how the tube does not animate when in Safari.

See the Pen LYgzgRX?editors=0100 by superfein (@superfein) on CodePen

 

And this one isn't related to GSAP, it's about foreignObjects not scaling properly in Safari. Any ideas on how to fix this one?

See the Pen NWOaOLj?editors=0100 by superfein (@superfein) on CodePen

See the Pen bGmojRv by superfein (@superfein) on CodePen

Link to comment
Share on other sites

Thanks Cassie!

 

So I tried to change the unit type, and that didn't work. But when I remove preserveAspectRatio="none" from the wrapper SVG of the turquoise tube, then the neon animation works. So there seems to be an issue in Safari where the CSS stretching (the height of the tube is 100vh in my CSS) of the SVG with a "none" aspect ratio set on the SVG, causes the animation to fizzle. Have you come across this before? What exactly are my options here...due to the complexity of the design I need it to be very malleable, that's why I set the aspect ratio to none so I could change it easily in the CSS. I'm kind of stumped. Any ideas?

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.
×
×
  • Create New...