css で画像をスピンしようとしていますが、何らかの理由hover
で Firefox でしか機能しません。画像はすべてのブラウザで回転しますが、hover
IE と chrome では回転しません
.button img {
position:absolute;
left:500px;
top:300px;
width:70px;
height:70px;
-webkit-animation: rotation 4s infinite linear;
-moz-animation: rotation 4s infinite linear;
animation: rotation 4s infinite linear;
}
.button img:hover{
-webkit-animation: rotation 2s infinite linear;
-moz-animation: rotation 2s infinite linear;
animation: rotation 2s infinite linear;
}
@-moz-keyframes rotation { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes rotation { 100% { -webkit-transform: rotate(360deg); } }
@keyframes rotation { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }