【发布时间】:2021-01-22 17:27:48
【问题描述】:
正如标题所暗示的,我正在尝试在 svg 中创建一个动画,其中包含一个遵循不规则路径的点/圆。我正在使用animateTransform,例如:
<animateTransform attributeName="transform"
attributeType="XML"
type="translate"
from="0 60 70"
to="360 60 70"
dur="10s"
repeatCount="definite"/>
我可以实现这个方法(在 svg 中)让圆圈跟随路径,还是我必须使用 javascript? 如果我可以在 svg 中做到这一点,你能给我一个带有解释的基本示例吗?
【问题讨论】:
标签: svg