Skip to content

Instantly share code, notes, and snippets.

@LeaVerou
Created December 6, 2011 05:13
Show Gist options
  • Save LeaVerou/1436853 to your computer and use it in GitHub Desktop.
Save LeaVerou/1436853 to your computer and use it in GitHub Desktop.
Experiments with stroke-dasharray */
/* Experiments with stroke-dasharray */
circle {
stroke: hsl(200, 10%, 20%);
stroke-opacity: .9;
fill: transparent;
stroke-width: 31.8;
}
<svg>
<circle cx="50" cy="50" r="15.9">
<animate attributeName="stroke-dasharray" values="0,500;100,500;0,500" dur="5s" repeatCount="indefinite" />
<animate attributeName="stroke-dashoffset" values="0;0;-100" dur="5s" repeatCount="indefinite" />
</circle>
</svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment