<style> html, body, svg { height: 100%; } </style> <svg viewBox="0 0 120 120" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <path d="M10,110 A120,120 -45 0,1 110 10 A120,120 -45 0,1 10,110" stroke="lightgrey" stroke-width="2" fill="none" id="motionPath" /> <circle cx="10" cy="110" r="3" fill="lightgrey" /> <circle cx="110" cy="10" r="3" fill="lightgrey" /> <circle r="5" fill="red"> <animateMotion dur="3s" repeatCount="indefinite" keyPoints="0;0.5;1" keyTimes="0;0.15;1" calcMode="linear"> <mpath href="#motionPath" /> </animateMotion> </circle> </svg>

반응형
'svg' 카테고리의 다른 글
svg view tag ; zoom in /out (0) | 2023.10.14 |
---|---|
svg text animation ; spiral (0) | 2023.10.13 |
svg animation example (0) | 2023.10.12 |
svg viewBox ;understanding relative, abolute units and using group tag <g> (0) | 2023.10.12 |
svg viewBox ;understanding relative, abolute units (0) | 2023.10.12 |