似乎在完成一个完整的循环时会停顿一秒钟。我读到过stroke-dashoffset应该是周长或更大,但它仍然有延迟。
https://jsfiddle.net/7rzny4ms/1/
<svg width="100" height="100">
<g>
<circle class="progress" r="40" cx="50" cy="50" fill="none" />
</g>
</svg>
.progress {
stroke: #000;
stroke-width: 4;
stroke-dashoffset: 0;
stroke-dasharray: 65;
animation: progress-indef 2s linear infinite;
}
@keyframes progress-indef {
0% { stroke-dashoffset: 251; }
100% { stroke-dashoffset: 0; }
}