경로와 함께 객체를 움직이는 SVG 애니메이션이 있습니다. 어떤 시점에서 동작 경로가 변경됩니다.Chrome에서 애니메이션 중 mothionPath가 변경되지 않습니다.
Firefox에서 움직이는 객체는 새로운 경로를 따르지만 Chrome에서는 이전 객체로 이동합니다. 왜 그런 일이 일어나는 지 누구가 알고 있으며 어떻게 고칠 수 있습니까?
function change(){
\t elem = document.getElementById("Zuerich_Geneva");
elem.setAttribute('d','M382500,53500 C632500,53500 549500,80000 499500,181000')
}
setTimeout(function() { change(); }, 5000);
<svg xml:space="preserve" viewBox="480000 0 360000 240000" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<symbol id="airplane" overflow="visible">
<path stroke="blue" stroke-width="100" fill="lightgray" d="M-4000,0 a1000,300 0 0,1 1000,-300 H-1000 L1500,-3000 h400 L0,-300 h2000 L3000,-1500 h500 L2500,-50 V100 L3500,1500 h-500 L2000,300 h-2000 L1900,3000 h-400 L-1000,300 H-3000 a1000,300 0 0,1 -1000,-300"/>
</symbol>
</defs>
<g id="AnimationPaths">
<path id="Zuerich_Geneva" stroke="orange" stroke-width="2000" fill="none" d="M682500,53500 C632500,53500 549500,80000 499500,181000"/>
<use id="AirplaneZurichGeneva" xlink:href="#airplane">
<animateMotion id="animMotionZurGen" dur="10s" repeatCount="indefinite" rotate="auto-reverse" keyPoints="1;0" keyTimes="0;1" calcMode="linear">
<mpath xlink:href="#Zuerich_Geneva"/>
</animateMotion>
</use>
</g>
</svg>
감사 : 여기
은 예입니다!
나는 대신에 크롬 버그로 제출했습니다 bugs.chromium.org/p/chromium/issues/detail?id=626935를 –