我正在尝试使用SVG动画绘制虚线半圆。
这里有一个jsfiddle的例子,我只需要顶部动画,但是需要虚线而不是实线。 https://jsfiddle.net/60drrzdk/1/ 希望有人能指点我正确的方向。
<svg id="processArrowPath" xmlns="http://www.w3.org/2000/svg" height="220">
<circle class="path" cy="110" cx="110" r="100"></circle>
</svg>
.path {
stroke-dasharray: 1000;
stroke-dashoffset: 1000;
animation: dash 5s linear forwards;
}
@keyframes dash {
to {
stroke-dashoffset: 0;
}
}
circle {
stroke-width: 2;
stroke-opacity: 1;
stroke-dasharray: 5,5;
stroke: #E0236C;
fill: none;
}
这里有一个jsfiddle的例子,我只需要顶部动画,但是需要虚线而不是实线。 https://jsfiddle.net/60drrzdk/1/ 希望有人能指点我正确的方向。