【发布时间】:2016-05-24 19:11:48
【问题描述】:
我有这个带有描边和填充动画的 SVG 标志,但我需要在第 4 秒后触发填充,这样它就不会出现在第一个动画中。
<defs>
<style>
.st0 {
stroke-dasharray: 800;
stroke-dashoffset: 0;
-webkit-animation: dash 4s linear forwards;
-moz-animation: dash 4s linear forwards;
-o-animation: dash 4s linear forwards;
animation: dash 4s linear forwards;
animation: fill .8s eas;
-webkit-animation: fill .8s eas;
-moz-animation: fill .8s eas;
-o-animation: fill .8 eas;
}
@-webkit-keyframes dash {
from {
stroke-dashoffset: 800;
}
to {
stroke-dashoffset: 0;
fill: #000;
}
}
</style>
</defs>
【问题讨论】: