transform-origin for CSS animation on SVG working in Chrome, not FF

后端 未结 2 845
小鲜肉
小鲜肉 2020-12-03 22:44

I am trying to create a simple animation using CSS and SVG: a rotating gear. The animation works perfectly in Chrome but not Firefox. Here is the code in action: http://jsfi

2条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-03 23:19

    Seems as if Firefox has a "problem" with assigning the CSS animation to the element inside the .

    If updated your jsFiddle and just moved the class attribute from to . Then it works as expected (except that the text now also rotates).

    Alternatively you may use in your SVG file.

    See DEMO

提交回复
热议问题