圖標(biāo)不轉(zhuǎn)啊,class加上了,各位大大,什么原因啊,求解釋
圖標(biāo)不轉(zhuǎn)啊,class加上了,各位大大,什么原因啊,求解釋
?.music > img.play{ ? ?-webkit-animation: music_disc 4s linear infinite ; ? ? ? ? ? ?animation: music_disc 4s linear infinite ; } ? ? ? ? ? ?/*4秒一周期 等速 再次重復(fù)*/
@-webkit-keyframes music_disc{
? ? 0%{
? ? ? ? -webkit-transform: rotate(0deg);/*旋轉(zhuǎn)*/
? ? ? ? ? ? ? ? transform: rotate(0deg);
? ? }
? ? 100%{
? ? ? ? -webkit-transform: rotate(-360deg);/*旋轉(zhuǎn)*/
? ? ? ? ? ? ? ? transform: rotate(-360deg);
? ? }
}
@keyframes music_disc{
? ? 0%{
? ? ? ? -webkit-transform: rotate(0deg);/*旋轉(zhuǎn)*/
? ? ? ? ? ? ? ? transform: rotate(0deg);
? ? }
? ? 100%{
? ? ? ? -webkit-transform: rotate(-360deg);/*旋轉(zhuǎn)*/
? ? ? ? ? ? ? ? transform: rotate(-360deg);
? ? }
}
2018-01-22
可能是js代碼有問題吧
2017-12-27
我的也是不轉(zhuǎn),不知道是什么問題······話說你那個music給的類是class嗎,視頻上的用的id前面是#