即使删除笔划,行仍保留在SVG动画中

时间:2017-08-29 10:29:46

标签: javascript css svg

我正在尝试将笔划/绘制效果应用于各种SVG路径。但是,我注意到它是在现有的实体笔画上进行动画制作。即使在从路径中删除所有笔划信息之后,它仍然会出现。

如何删除中风?

使用

<path class="drawing paused" stroke="#1d1d1b"stroke-width=".2" stroke-miterlimit="10" d="M54.6717,187.38507a3.28086,3.28086,0,1,1,2.86088-3.25389A3.07995,3.07995,0,0,1,54.6717,187.38507Zm0-5.87372a2.65453,2.65453,0,1,0,2.22687,2.61983A2.45027,2.45027,0,0,0,54.6717,181.51135Z"></path>

没有

<path class="drawing paused" d="M54.6717,187.38507a3.28086,3.28086,0,1,1,2.86088-3.25389A3.07995,3.07995,0,0,1,54.6717,187.38507Zm0-5.87372a2.65453,2.65453,0,1,0,2.22687,2.61983A2.45027,2.45027,0,0,0,54.6717,181.51135Z"></path>

1 个答案:

答案 0 :(得分:0)

我已经意识到可以使用

删除剩余的颜色
(superview?.next? as? UIViewController)?.navigationController?.pushViewController("your viewcontroller object", animated: false)