我正尝试使用Snap.svg创建SVG动画。 每次我尝试应用面膜时,我什么都看不到。 的代码是相对简单的(且在实施例中完美地工作): var open = s.select('.open');
var circle = s.select('.circle').attr({mask:open});
Here's the whole example。我已经注释了应该使用掩码的代码,以便了解我要做
这个demo。 我想使用Snap.svg制作图标,所以我希望最终用户重复HTML以获取多个图标。 HTML: <svg class="box"></svg>
<svg class="box"></svg> <!-- not work -->
<svg class="box"></svg> <!-- not work -->
<svg class="box"></svg> <!-- not w