【发布时间】:2012-02-14 07:54:38
【问题描述】:
请参阅this fiddle 了解我的意思的示例或查看此代码。
<a href="/">test</a>
a{
background-color:#ccc;
transition: all 1s ease;
-moz-transition: all 1s ease;
-o-transition: all 1s ease;
-webkit-transition: all 1s ease;
}
a:hover{
background-color:#888;
}
a{
-moz-animation-duration: 3s;
-moz-animation-name: move;
-moz-animation-iteration-count: infinite;
-moz-animation-direction: alternate;
}
@-moz-keyframes move {
from {
margin-left: 0px;
}
to {
margin-left: 50px;
}
}
动画偶尔会跳动或改变速度,尤其是当您将鼠标悬停在它上面时...我尝试过自己运行动画(没有定义过渡),它运行流畅且符合预期。我自己运行了过渡,它按预期工作。这种组合似乎会导致问题。
可能是 Firefox 实现错误?我正在运行 Firefox 6.0.1、Ubuntu 11.04。
【问题讨论】:
-
在我的浏览器中工作正常吗?火狐 6.0.1 Win 7 专业版。
-
那可能是 Linux 版 Firefox 特有的 bug?