CSS3动画在IE10中不起作用

时间:2013-07-25 05:44:03

标签: css html5 css3 css-transitions

这个JSFiddle包含一个CSS动画,适用于Chrome,Firefox和Safari,但不适用于IE 10.它不会在IE10中启动动画 - 这里看不出任何错误?

    .x1 {
          left: 200px;
          top: -150px;

         -webkit-transform: scale(0.8);
         -moz-transform: scale(0.8);
         -o-transform: scale(0.8);
         -ms-transform: scale(0.8);
          transform: scale(0.8);
         -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
          filter: alpha(opacity=80);
          opacity: 0.8;

         -webkit-animation: moveclouds 47s linear infinite;
         -moz-animation: moveclouds 47s linear infinite;
         -ms-animation: moveclouds 47s linear infinite;
         -o-animation: moveclouds 47s linear infinite;
          animation: moveclouds 47s linear infinite;
        }


      @keyframes "moveclouds" {
          0% {
              margin-left: 1000px;
             }
        100% {
             margin-left: -1000px;
             }
        }

      @-moz-keyframes moveclouds {
         0% {
             margin-left: 1000px;
            }
       100% {
             margin-left: -1000px;
            }
        }

      @-webkit-keyframes "moveclouds" {
         0% {
             margin-left: 1000px;
            }
       100% {
             margin-left: -1000px;
            }
        }

      @-ms-keyframes "moveclouds" {
         0% {
             margin-left: 1000px;
            }
       100% {
             margin-left: -1000px;
            }
        }

     @-o-keyframes "moveclouds" {
       0% {
           margin-left: 1000px;
          }
     100% {
           margin-left: -1000px;
          }
       }

这是JsFiddle Link http://jsfiddle.net/zXTSp/1/

1 个答案:

答案 0 :(得分:1)

尝试IE10中的Jsfiddle

http://jsfiddle.net/2V3Sx/

应为@-webkit-keyframes moveclouds {

不是@-webkit-keyframes "moveclouds" { ...错字......:)

希望这有效