我正在尝试制作一个简单的 css3 动画。到目前为止,它在 Firefox 中运行良好,但在 Chrome 或 Safari 中却不行。
我补充@-webkit-keyframes说它应该适用于所有浏览器(可能不在 IE 中)。
这是我的CSS:
.myFace {
        display: block;
        width: 266px;
        height: 266px;
        background: url(http://cl.ly/image/443k292m2C24/face2x.png) no-repeat 0 0;}
.myFace:hover {
    animation: threesixty 1s;
    -webkit-animation: threesixty 1s; /* Safari and Chrome */
}
@keyframes threesixty {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@-webkit-keyframes threesixty {
    0% {transform: rotate(0deg);}
    100% {transform: rotate(360deg);}
}
这就是我想要做的 - http://jsfiddle.net/dansku/JTcxH/4/