我已经创建了动画,还需要3件事才能使其正常工作。
此处的代码:https://codepen.io/laura-conde/pen/qzEZLL
<svg viewBox="0 0 705.88 705.88" >
<circle class="white_circle_land" cx="352.94" cy="352.94" r="272.94" />
<circle class="_magenta50To100Image" cx="352.94" cy="352.94" r="272.94" />
</svg>
<style>
._magenta50To100Image {
fill: none;
stroke: #E92D87;
stroke-width: 135;
stroke-dasharray: 1800;
stroke-dashoffset: 1800;
animation: magenta 2s linear;
animation-fill-mode: forwards;
}
.white_circle_land {
fill: none;
stroke: #000000;
stroke-width: 149;
stroke-dasharray: 1800;
stroke-dashoffset: 1800;
animation: magenta 2s linear;
animation-fill-mode: forwards;
}
@keyframes magenta {
to {
stroke-dashoffset: 0;
opacity: 1;
}
}
</style>