【发布时间】:2015-11-22 11:22:26
【问题描述】:
如何在 SVG 中使用 animateTransform 从中心点而不是左上角缩放对象?
例子:
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100px" height="100px">
<circle style="fill:blue;" cx="50" cy="50" r="45">
<animateTransform attributeName="transform"
type="scale"
from="0 0"
to="1 1"
begin="0s"
dur="1s"
repeatCount="indefinite"
/>
</circle>
</svg>
【问题讨论】:
标签: animation svg svg-animate