【问题标题】:Is there a way to use "transition: background-image" for opacity only?有没有办法仅将“过渡:背景图像”用于不透明度?
【发布时间】:2014-11-25 14:19:19
【问题描述】:

据我所知,“transition: background-image”会影响多个 CSS 属性,包括缩放和不透明度,而不会产生偏差。请参见下面的示例。我只想影响不透明度。这在转换参数中是否可能?

ViewExample.

【问题讨论】:

    标签: css image background transition opacity


    【解决方案1】:

    here 有一个答案。 看起来背景图像不是可动画的,至少spec 这么说。 看看另一个问题,它有一个执行此操作的 jquery 插件。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-07-05
      • 2012-07-11
      • 2015-05-15
      • 2012-05-28
      • 2019-05-21
      • 2015-01-20
      • 1970-01-01
      相关资源
      最近更新 更多