嗨這可能是一個重複的問題,如果是這樣,我很抱歉,但是我在搜索中獲得了大量的內容。不適用於Mozilla的動畫
我寫過動畫,在Chrome中運行良好,但不知何故,它在Mozilla中不起作用。高度讚賞任何人的幫助
.truck-size{
background: url("../img/truck-animation/truck0.png")no-repeat center center;
height: 100px;
-webkit-animation: 5s linear 0s normal none infinite truck-change;
animation: 5s linear 0s normal none infinite truck-change;
-moz-animation: 5s linear 0s normal none infinite truck-change;
-o-animation: 5s linear 0s normal none infinite truck-change;
}
@-webkit-keyframes truck-change {
0% {background: url("../img/truck-animation/truck0.png")no-repeat center center;height: 100px;}
100% {background: url("../img/truck-animation/truck20.png")no-repeat center center;height: 100px;}
}
@keyframes truck-change {
0% {background: url("../img/truck-animation/truck0.png")no-repeat center center;height: 100px;}
100% {background: url("../img/truck-animation/truck20.png")no-repeat center center;height: 100px;}
}
@-moz-keyframes truck-change {
0% {background: url("../img/truck-animation/truck0.png")no-repeat center center;height: 100px;}
100% {background: url("../img/truck-animation/truck20.png")no-repeat center center;height: 100px;}
}
您可以設置廣告emo在jsfiddle? –
http://jsfiddle.net/yksg35xc/ 但這個小提琴在chrome和firefox都可以使用,但是我仍然無法讓它在我的本地firefox上工作 –