【发布时间】:2021-09-17 07:30:12
【问题描述】:
当动画结束时,描边的颜色应该变成黑色
100% {
stroke: black;
它在 Firefox 中正确,但在 Chrome 中却没有
codepen:https://codepen.io/sendmead/pen/MWpzRjK
这是部分 svg 代码:
@keyframes keyframes12 {
from {
stroke: blue;
stroke-dashoffset: 482;
stroke-width: 128;
}
61% {
animation-timing-function: step-end;
stroke: blue;
stroke-dashoffset: 0;
stroke-width: 128;
}
100% {
stroke: black;
stroke-width: 1024;
}
}
#char-animation-12 {
animation: keyframes12 0.6422526041666666s both;
animation-delay: 8.892740885416666s;
animation-timing-function: linear;
}
【问题讨论】:
标签: google-chrome svg firefox svg-animate