0
我目前在Firefox中使用邊框(從無到50px)的動畫時遇到問題。 Chrome非常好,但Firefox不是,我想在Opera中會出現同樣的問題。使用Firefox上的邊框上的動畫時遇到問題(至少)
這裏有一個小提琴向您展示問題(試用Chrome,然後FF):https://jsfiddle.net/Bonlo/kL5g0qdx/
@keyframes fadeBorder {
from { border: 0 solid rgba(0,0,0,0);}
to { border: 30px solid black;}
}
.main-wrapper {
width: 400px;
height:400px;
background-color: white;
animation-name: fadeBorder;
animation-duration: 1.5s;
animation-delay: 1s;
animation-fill-mode: forwards;
}
我想,從邊界來的問題:無;值,但我不知道如何實現這一目標?
編輯:
解決!
的事情是,火狐需要邊界的初始定義,這至少是:
border: 0 solid;
你見過這篇文章嗎? https://stackoverflow.com/questions/21143893/css-animation-in-firefox-not-work – Calaris
我試過了@Calaris它也沒有使用前綴。 –
@Bonlo在Firefox中可能會出現動畫邊框問題。我在firefox中查看w3schools中的示例。他們工作不正常。 –