Skip to content

Instantly share code, notes, and snippets.

@lmiller1990
Created December 7, 2019 08:45
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
<script>
document.addEventListener('DOMContentLoaded', () => {
const circle = document.querySelector('circle')
circle.style.strokeDasharray = circle.r.baseVal.value * Math.PI * 2
})
</script>
<svg
class="progress"
width="120"
height="120"
>
<circle
stroke-width="4"
stroke="red"
r="50"
cx="60"
cy="60"
fill="transparent"
/>
</svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment