Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
svg clippath动画在webkit中工作不正常_Svg_Webkit_Jquery Animate_Tunnel - Fatal编程技术网

svg clippath动画在webkit中工作不正常

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

这是我添加的javascript,用于在剪辑路径内设置svg圆圈标记半径的动画

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。