CSS动画在Firefox中不起作用

时间:2015-01-15 06:07:15

标签: html css css3 animation webkit

这真的让我很难过,不知道问题是什么,因为我有-moz-选项。

动画在webkit中运行良好但在Firefox中运行良好。

这是我的CSS:

    @-webkit-keyframes flip {
    from {
        -moz-transform: scaleX(0);
        -o-transform: scaleX(0);
        -webkit-transform: scaleX(0);
        transform: scaleX(0);
  }
    to {
            -moz-transform: scaleX(-1);
            -o-transform: scaleX(-1);
        -webkit-transform: scaleX(-1);
        transform: scaleX(-1);
        filter: FlipH;
        -ms-filter: "FlipH";
  }
}
@keyframes flip {
0% {
        -moz-transform: scaleX(0);
        -o-transform: scaleX(0);
        -webkit-transform: scaleX(0);
        transform: scaleX(0);
  }
100% {
        -moz-transform: scaleX(-1);
        -o-transform: scaleX(-1);
        -webkit-transform: scaleX(-1);
        transform: scaleX(-1);
        filter: FlipH;
        -ms-filter: "FlipH";
  }

}
.jig-loaded img {
  -webkit-animation: flip 1.0s !important;
  animation: flip 1.0s !important; 
   -moz-animation: flip 10.0s !important;
    }

非常感谢!

1 个答案:

答案 0 :(得分:0)

@user3154772: As per my understanding. I have resolve below code.Please check and try it.  
@-webkit-keyframes flip {
    from {
        -moz-transform: scaleX(0);
        -o-transform: scaleX(0);
        -webkit-transform: scaleX(0);
        transform: scaleX(0);
  }
    to {
            -moz-transform: scaleX(-1);
            -o-transform: scaleX(-1);
        -webkit-transform: scaleX(-1);
        transform: scaleX(-1);
        filter: FlipH;
        -ms-filter: "FlipH";
  }
}
@-moz-keyframes flip {
    from {
        -moz-transform: scaleX(0);
        -o-transform: scaleX(0);
        -webkit-transform: scaleX(0);
        transform: scaleX(0);
  }
    to {
            -moz-transform: scaleX(-1);
            -o-transform: scaleX(-1);
        -webkit-transform: scaleX(-1);
        transform: scaleX(-1);
        filter: FlipH;
        -ms-filter: "FlipH";
  }
}
@keyframes flip {
0% {
        -moz-transform: scaleX(0);
        -o-transform: scaleX(0);
        -webkit-transform: scaleX(0);
        transform: scaleX(0);
  }
100% {
        -moz-transform: scaleX(-1);
        -o-transform: scaleX(-1);
        -webkit-transform: scaleX(-1);
        transform: scaleX(-1);
        filter: FlipH;
        -ms-filter: "FlipH";
  }

}
.jig-loaded img {
  -webkit-animation: flip 1.0s !important;
  animation: flip 1.0s !important; 
   -moz-animation: flip 10.0s !important;
    }