0
我正在尝试使用javascript设置动画圆的半径#mask-hole-2。以便它从0到145px的半径动画。但我不知道如何以一种常见的方式做到这一点。我不能使用CSS因为似乎有另一个规范使用Firefox的动画口罩与CSS。任何帮助表示赞赏。svg的Javascript动画
<svg width="400" height="300">
<defs>
<mask id="hole">
<circle id="mask-hole-1" cx="165" cy="156.5" r="165" fill="white" />
<rect id="mask-hole-3" width="100%" height="100%" fill="white"/>
<circle id="mask-hole-2" cx="165" cy="156.5" r="145" />
</mask>
</defs>
<image width="400" height="300"
xlink:href="http://lorempixel.com/400/300/sports/"
mask="url(#hole)"/>
</svg>
THX至今。这接近我想要达到的。我想要#mask-hole-1在2秒内将其半径从0改为175.在2s后#mask-hole-2也应该将其半径从0更改为175。你能否调整片段? – toruwe
你只需要做同样的动作,你可以用手做,请将答案标为正确^^ –