【问题标题】:SVG animate fill to none results in black backgroundSVG动画填充到无导致黑色背景
【发布时间】:2015-06-09 20:27:44
【问题描述】:

我希望这可以动画成透明背景。知道为什么它会变成黑色或如何修复它吗?

<svg>
  <rect height="100" width="100">
    <animate attributeName="fill" from="red" to="none" dur="3s" fill="freeze">
  </rect>
</svg>

相关CodePen:http://codepen.io/corysimmons/pen/Byeoyw?editors=100

【问题讨论】:

  • 感谢您的帮助。我想通了。

标签: svg jquery-animate svg-animate smil


【解决方案1】:

none 无效。 transparent 按预期工作。

【讨论】:

    猜你喜欢
    • 2012-07-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-03
    • 1970-01-01
    • 2021-09-09
    相关资源
    最近更新 更多