次のアニメーションはChromeとOperaでは正常に動作しますが、Mozilla Firefoxでは動作しません。なぜ私は理解できません。'stroke-dashoffset'のSVGテキストFirefoxでCSSアニメーションが機能しない
問題を解決するのに手伝ってもらえますか?私のCSSで何が間違っていますか?
#text-logo {
font-family: 'Shrikhand', cursive;
stroke-dashoffset: 100%;
stroke-dasharray: 100%;
-moz-animation: draw 8s forwards ease-in;
-webkit-animation: draw 8s forwards ease-in;
animation: draw 8s forwards ease-in;
background-clip: text;
}
@keyframes draw {
100% {
stroke-dashoffset: 0;
}
}
@-webkit-keyframes draw {
100% {
stroke-dashoffset: 0;
}
}
@-moz-keyframes draw {
100% {
stroke-dashoffset: 0;
}
}
<div class="draw_text">
<svg width="1092" height="220">
<text x="150" y="200" fill="#fff" stroke="#333" id="text-logo" stroke-width="2" font-size="95">WHO I AM ?</text>
</svg>
</div>
Firefoxは確かに割合の標準的な定義を実装しています。 –