【问题标题】:Make css3 animations off in just opera browser仅在 Opera 浏览器中关闭 css3 动画
【发布时间】:2014-03-30 14:58:13
【问题描述】:

如何在 Opera 浏览器中关闭所有 css3 动画?

我不想完全捡起它们,只想在歌剧中将其关闭。

【问题讨论】:

  • 也许您可以从代码隐藏(以编程方式)提供 css 类并从那里检查浏览器?应该有一些命令。

标签: css opera css-animations


【解决方案1】:

您将只关注 opera 浏览器,这是通过前缀完成的:

-o-transition: none;

因此,针对特定元素将具有以下内容:

a {
-webkit-transition: all 0.5s ease-in-out;
-moz-transition: all 0.5s ease-in-out;
-ms-transition: all 0.5s ease-in-out;
-o-transition: none;
transition: all 0.5s ease-in-out;
}

但是如果不看你的 html 和 css,你的转换可能会有所不同。

【讨论】:

    【解决方案2】:

    至少,我使用了这个代码:

     noindex:-o-prefocus, * {
      animation : none !important;
            -o-animation : none !important;
    }
    

    问题已解决。

    【讨论】:

      猜你喜欢
      • 2014-01-04
      • 2015-08-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-11-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多