svg clippath动画在webkit中工作不正常
这是我添加的javascript,用于在剪辑路径内设置svg圆圈标记半径的动画svg clippath动画在webkit中工作不正常,svg,webkit,jquery-animate,tunnel,Svg,Webkit,Jquery Animate,Tunnel,这是我添加的javascript,用于在剪辑路径内设置svg圆圈标记半径的动画 function tunnel_gallery() { timerFunction = setInterval(tunnelanimate, 20); } function tunnelanimate() { var clip = document.getElementById("circle1"); var rad = clip.getAttribute("r"); var
function tunnel_gallery()
{
timerFunction = setInterval(tunnelanimate, 20);
}
function tunnelanimate()
{
var clip = document.getElementById("circle1");
var rad = clip.getAttribute("r");
var tunnel_width = jQuery("#tunnel-mask").parent().width();
var newrad = 2 + parseInt(rad);
if (newrad > tunnel_width)
{
clearInterval(timerFunction);
clip.setAttribute("r", 0);
timerFunction = null;
}
else
{
clip.setAttribute("r", newrad);
}
}
你的问题到底是什么?如果您发现了一个bug,请向webkit的bug报告站点报告。我的问题是,是否有任何方法可以修复webkit的这个bug。