svg 线条动画
<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg">
<line x1="10" y1="10" x2="10" y2="90" /> <polyline points=" 30,0 30,90 80,90" fill="none" stroke="black" stroke-width="4"/>
</svg>
<style>
svg {
background: #ccc;
}
svg line {
/* stroke: #999; */
stroke-width: 4;
fill: none;
}
@keyframes depict {
from {
stroke: red;
stroke-dashoffset: 200;
}
to {
stroke: red;
stroke-dashoffset: 0;
}
}
svg polyline{
stroke-dasharray: 200;
animation: depict 2s linear 0s 1 normal forwards;
}</style>
相关推荐
mapaler 2020-07-17
MIKUScallion 2020-07-05
Dickzeng 2020-07-05
wallowyou 2020-06-28
hermanncain 2020-06-25
mapaler 2020-06-21
Dickzeng 2020-06-17
程序员俱乐部 2020-06-11
lanzhusiyu 2020-06-09
hermanncain 2020-05-09
Elena0 2020-04-11
Leonwey 2020-04-11
wallowyou 2020-03-05
jinxiutong 2020-02-10
jinxiutong 2020-02-03
mqbeauty 2020-01-08
mapaler 2020-01-17
Elena0 2020-01-12
mapaler 2020-01-05