0
我有一個精靈,我已經做了,它可以在Chrome中使用,但不是Firefox [FF]。在Chrome/Edge中工作的CSS動畫,而不是FF
.hand {
width: 600px;
height: 529.5px;
margin: 2% auto;
background: url('hand2.png') center top;
animation: play 3s steps(24) infinite;
}
@keyframes play {
100% { background-position: 0px -50840px; }
}
,然後做:
<div class="hand"></div>
作品在Chrome瀏覽器顯示的動畫。 Firefox需要我什麼?謝謝。
看起來它應該在Firefox中工作。你可以上傳圖片並給我們一個鏈接(或)創建一個演示? – Harry
在沒有前綴調整的Firefox中工作 - http://i.imgur.com/rLAVNjk.png - https://jsfiddle.net/qvvm57ac/ – drudge