【发布时间】:2019-06-25 16:27:28
【问题描述】:
我已经在 SVG g 标签上使用了 transform translate 和 scale 并提供了 transition-duration:1s。它在 Chrome 中运行良好。
问题是持续时间效果在 FireFox 中不起作用。
let mapStyle = {
transitionDuration: "700ms",
transformOrigin: "center"
};
return(
<g className="map" style={mapStyle} ref={(n) => this.topologyGroup = n}>
<RingGroup fabrics={fabrics}/>
</g>
);
<g class="map" style="transition-duration: 700ms; transform-origin: center center 0px;"> </g>
【问题讨论】:
标签: css reactjs firefox svg jsx