<?xml version="1.0" standalone="no"?>
<svg xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
width="1500" height="1500">
<rect x="100" y="100" width="10" height="20" stroke="black" stroke-width="3" fill="none">
<animate attributeName="x" to="500" dur="2s" repeatCount="indefinite"/>
</rect>
</svg>
使用<animateTransform>
?
移动最好使用transformation命令,
translate()
相对于改变坐标,资源消耗更少x
动画结束时暂停 1 秒的重新旋转示例
begin="0s;an_tr.end+1s"