Skip to content

Instantly share code, notes, and snippets.

@chibaye
Created May 7, 2019 18:59
Show Gist options
  • Save chibaye/bbda22bcb50b56a1d29cc87ca5593d0f to your computer and use it in GitHub Desktop.
Save chibaye/bbda22bcb50b56a1d29cc87ca5593d0f to your computer and use it in GitHub Desktop.
SVG - Pulsating Circle
<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;
}

SVG - Pulsating Circle

A simple pulsating circle. It makes a good "current location" marker in google maps.

A Pen by Shane Parsons on CodePen.

License.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment