Transform origin on SVGs in Firefox

不打扰是莪最后的温柔 提交于 2019-11-26 03:44:59

问题


I\'m new to animating SVGs & I\'ve come across a problem that only seems to happen in Firefox. I\'ve created a animation here - http://codepen.io/iamali/pen/txvpo - of a sky scene. The sun should rotate & fade in & out.

It works fine in Chrome, but for some reason it appears to ignore the transform-origin value in Firefox and the sun goes AWOL. Does anyone know of such an issue in Firefox? Or could it be anything else? I\'ve tried Google all sorts of terms but there doesn\'t seem to be much out there on it.

Thanks!


回答1:


transform-origin with percentage units works from Firefox 43 onwards.



来源:https://stackoverflow.com/questions/24203492/transform-origin-on-svgs-in-firefox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!