【问题标题】:CSS keyframe animation not workingCSS关键帧动画不起作用
【发布时间】:2012-09-15 02:59:37
【问题描述】:

我得到this animation 使用在 webkit 或 IE10 中不起作用的关键帧(先做这些)。我做错了吗?

谢谢大家的建议!

【问题讨论】:

    标签: animation css css-transitions


    【解决方案1】:

    我不了解 IE,但 -webkit-animate 不是有效属性。您需要使用-webkit-animation

    演示:http://jsfiddle.net/pmfzh/2/

    【讨论】:

      【解决方案2】:

      这里是正确的 CSS。将animate 更改为animation

      div.run:hover{
          animation: bounce 2s;
          -webkit-animation: bounce 2s;
      }
      

      【讨论】:

        猜你喜欢
        • 2016-03-26
        • 1970-01-01
        • 2021-10-20
        • 2013-11-20
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2022-11-11
        相关资源
        最近更新 更多