Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/svg/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
Animation 将路径svg动画转换为纯css动画_Animation_Svg - Fatal编程技术网

Animation 将路径svg动画转换为纯css动画

Animation 将路径svg动画转换为纯css动画,animation,svg,Animation,Svg,是否可以将此路径动画转换为纯css动画 <svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewPort="0 0 595.28 841.89"> <g> <path id="thread" transform="translate(242, 130)" fill="none" stroke="#fff" d="M 302 540 l 1 -150

是否可以将此路径动画转换为纯css动画

<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewPort="0 0 595.28 841.89">
  <g>
    <path id="thread" transform="translate(242, 130)" fill="none" stroke="#fff" d="M 302 540 l 1 -150">
      <animate attributeType="XML" attributeName="d" values="M-108 -30 c0 10 -10 90 0 106;
                     M-108 -30 c0 10 3 90 0 106;
                     M-108 -30 c0 10 10 90 0 106;
                     M-108 -30 c0 10 -3 90 0 106;
                     M-108 -30 c0 10 -10 90 0 106" keyTimes="0; 0.25; 0.5; 0.75; 1" dur="5s" repeatCount="indefinite" />
    </path>
  </g>
</svg>


不是,跨浏览器,不是。SMIL到底怎么了?Chrome已经取消了他们对它的反对。SMIL在IE9上工作吗?当然可以通过polyfill: