在上面的 CodePen 中,有一个 SVG,在动画结束时它会消失。
有没有办法让它加载后保持可见?
.path {
stroke-dasharray: 1000;
stroke-dashoffset: 1000;
animation: dash 5s linear alternate;
}
@keyframes dash {
from {
stroke-dashoffset: 1000;
}
to {
stroke-dashoffset: 0;
}
}