我有這個加載SVGSVG - 如何將筆劃從虛線轉爲實心?
的想法是我的提交表單時,這將顯示,它旋轉。處理完成後,圓應變爲「固定」,您將看到虛線展開併成爲一個整圓,並停止旋轉。
#svg-circle {
fill: none;
stroke: #333;
stroke-width: 6;
stroke-dasharray: 22.68px;
stroke-dashoffset: 10px;
stroke-linecap: round;
animation: circleAn 1s linear infinite;
-webkit-transition: ease 250ms;
-moz-transition: ease 250ms;
transition: ease 250ms;
}
@keyframes circleAn {
to {
stroke-dashoffset: 100px;
}
}
<svg id="svg-msg">
<circle id="svg-circle" class="svg-circle" cx="100" cy="100" r="94" />
</svg>
有什麼建議?
謝謝!一直試圖弄清楚幾個小時。我對svg很陌生,你是如何對它們進行設計的。 – Simon
感謝您提供流暢動畫的指針。 – bhansa