0
我希望我的H3標籤在無限循環中改變顏色。我的代碼在Safari中工作正常,但Firefox不會使標籤更改顏色?Webkit顏色轉換循環文本在Firefox中不起作用
這裏是我的代碼:
h3 {color: #333 !important;}
@-webkit-keyframes colours {
0% {color: #333;}
15% {color: #8bc5d1;}
30% {color: #f8cb4a;}
45% {color: #95b850;}
60% {color: #944893;}
75% {color: #c71f00;}
90% {color: #bdb280;}
100% {color: #333;}
}
h3 {
-webkit-animation-direction: normal;
-webkit-animation-duration: 60s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-name: colours;
-webkit-animation-timing-function: ease;
}
所有這些'webkit'指令?他們只適用於Safari。 Firefox忽略它們。 Firefox對應的'moz'(Mozilla)標籤。 –