【发布时间】:2018-04-21 12:25:58
【问题描述】:
我正在尝试在开放路径上从头到尾移动 obj 并从头到尾
这里单路径表示没有其他重叠的额外路径
在我从头到尾完成的代码中,但我怎么能从头到尾做到这一点
请帮忙
提前谢谢你
<?xml version="1.0"?>
<svg viewBox="0 0 120 120" xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Draw the outline of the motion path in grey, along with 2 small circles at key points -->
<path d="M10.635,5.412L50.41,50.187" stroke="green" stroke-width="2" fill="none" id="theMotionPath"/>
<!-- Red circle which will be moved along the motion path. -->
<circle cx="0" cy="" r="2" fill="red">
<!-- Define the motion path animation -->
<animateMotion dur="6s" repeatCount="indefinite">
<mpath xlink:href="#theMotionPath"/>
</animateMotion>
</circle>
</svg>
【问题讨论】:
标签: jquery animation svg jquery-animate