0
는 하드 코딩 된 크기로 화면 중앙 주위에 원을 이동하기위한 다음과 같은 SVG 코드를 고려animateTransform을 사용하여 객체를 화면 가운데 정확히 회전시키는 방법?
<svg xmlns="http://www.w3.org/2000/svg">
<g>
<ellipse id="circ" style="fill:#000000"
cx="60%" cy="50%"
rx="10" ry="10" />
<!--Assuming window size is 1000x1000-->
<animateTransform attributeName="transform"
type="rotate" dur="10s"
from="0,500,500"
to="360,500,500"
repeatCount="indefinite"/>
</g>
</svg>
나는 애니메이션이 작동하지 않습니다 퍼센트의 회전 중심을 제공하려고하면 전체 :
<animateTransform attributeName="transform"
type="rotate" dur="10s"
from="0,50%,50%"
to="360,50%,50%"
repeatCount="indefinite"/>
어떻게 수정합니까?