【发布时间】:2020-10-07 02:18:08
【问题描述】:
我遇到了 SVG 动画的问题。我需要为 SVG 设置动画,就好像它是从左到右绘制的一样 see the SVG
这样可以吗? SVG 代码如下,以备不时之需
<svg width="1920" height="399" viewBox="0 0 1920 399" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="969" cy="209" r="189" stroke="black" stroke-width="2"/>
<circle cx="529" cy="209" r="189" stroke="black" stroke-width="2"/>
<circle cx="1409" cy="209" r="189" stroke="black" stroke-width="2"/>
<path d="M0 192C156.295 128.885 480.909 6.14397 529 20.0956" stroke="black" stroke-width="2"/>
<path d="M1920 190C1765.48 127.615 1444.55 6.2926 1397 20.083" stroke="black" stroke-width="2"/>
<path d="M488 26C574.756 7.13441 802.014 -19.2774 1017 26" stroke="black" stroke-width="2"/>
<path d="M922 26C1008.76 7.13441 1236.01 -19.2774 1451 26" stroke="black" stroke-width="2"/>
</svg>
我正在尝试使用 SVG Artista 服务制作动画。我已经尝试将所有路径和圆圈合并到 1 条路径中,但没有帮助。
提前致谢!
更新:
我被要求添加一个我得到的路径代码,这里是:
<svg width="100%" height="399" viewBox="0 0 1920 399" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M1220,209a189,189 0 1,0 378,0a189,189 0 1,0 -378,0 M340,209a189,189 0 1,0 378,0a189,189 0 1,0 -378,0 M780,209a189,189 0 1,0 378,0a189,189 0 1,0 -378,0 M0 192C156.295 128.885 480.909 6.14397 529 20.0956 M1920 190C1765.48 127.615 1444.55 6.2926 1397 20.083 M488 26C574.756 7.13441 802.014 -19.2774 1017 26 M922 26C1008.76 7.13441 1236.01 -19.2774 1451 26" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
【问题讨论】:
-
@RobertLongson 我更新了问题。