Skip to content

Instantly share code, notes, and snippets.

@DeanMarkTaylor
Forked from LeaVerou/dabblet.css
Created September 25, 2013 17:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DeanMarkTaylor/6702737 to your computer and use it in GitHub Desktop.
Save DeanMarkTaylor/6702737 to your computer and use it in GitHub Desktop.
Attempt for Chrome-style progress-indicator with SVG and CSS animations
/**
* Attempt for Chrome-style progress-indicator with SVG and CSS animations
*/
@keyframes spin {
to {
stroke-dashoffset: -264;
}
}
.progress circle {
fill: none;
stroke: rgba(255, 0, 0, 0.5);
stroke-width: 16;
stroke-linecap: round;
stroke-dasharray: 0, 0, 50, 214;
stroke-dashoffset: 0;
animation: spin 4s infinite linear;
}
<svg class="progress" viewBox="0 0 100 100">
<circle cx="50" cy="50" r="42" transform="rotate(-90,50,50)" />
</svg>
// alert('Hello world!');
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment