我一直在努力修復我今晚用於Firefox的CSS類型寫作動畫 - 迄今爲止沒有成功。 Chrome代碼正常工作。我錯過了什麼人?CSS鍵入動畫不適用於Firefox
.css-typing
{
width: 680px;
white-space: nowrap;
overflow: hidden;
-webkit-animation: type 3s steps(50, end);
animation: type 3s steps(55, end);
-o-animation: type 5s steps(50, end);
-moz-animation: type 3s steps(55, end);
}
@keyframes type
{
from { width: 0; }
}
@-moz-keyframes type
{
from { width: 0; }
}
@-webkit-keyframes type
{
from { width: 0; }
}
這也在這段代碼中定義的股利如下:
<div class='css-typing'>This text will pop up using an typewriting effect</div>
有誰發現我的錯誤?
除了'div'沒有'.css-typing'嗎? – TricksfortheWeb
錯別字......就像上面提到的那樣,它可以在Chrome上運行,所以 –