greensock / GSAP

GSAP (GreenSock Animation Platform), a JavaScript animation library for the modern web
https://gsap.com
19.56k stars 1.72k forks source link

Inconsistencies with SVG properties (Chrome ok, Firefox ko) #48

Closed fregante closed 10 years ago

fregante commented 10 years ago

I'm not exactly sure what your stance is on setting non-numeric values with TweenLite, but I noticed that setting the SVG property clip-path works flawlessly in Chrome and it doesn't in Firefox. Demo

TweenLite.set('#box', {'clip-path':'url(#circle-clip)'})
jackdoyle commented 10 years ago

Have you tried the proper camel-case (as described in the docs)? clipPath: instead of "clip-path":

fregante commented 10 years ago

That works indeed!