A simple pulsating circle. It makes a good "current location" marker in google maps.
A Pen by Shane Parsons on CodePen.
<svg width="200" height="200" viewbox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"> | |
<circle cx="20" cy="20" fill="none" r="10" stroke="#383a36" stroke-width="2"> | |
<animate attributeName="r" from="8" to="20" dur="1.5s" begin="0s" repeatCount="indefinite"/> | |
<animate attributeName="opacity" from="1" to="0" dur="1.5s" begin="0s" repeatCount="indefinite"/> | |
</circle> | |
<circle cx="20" cy="20" fill="#383a36" r="10"/> | |
</svg> |
html { | |
height: 100%; | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
} |
A simple pulsating circle. It makes a good "current location" marker in google maps.
A Pen by Shane Parsons on CodePen.