【发布时间】:2017-06-25 08:06:33
【问题描述】:
我今晚一直在尝试修复我的 Firefox 的 CSS 打字动画 - 到目前为止没有成功。 Chrome代码可以工作。我想念什么?
.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 如下所示:
<div class='css-typing'>This text will pop up using an typewriting effect</div>
有人发现我的错误吗?
【问题讨论】:
-
除了
div没有.css-typing这一事实之外? -
错字...就像提到的,它适用于 chrome 所以
标签: html css firefox css-animations