Skip to content

Instantly share code, notes, and snippets.

@loai-kanou
Forked from LeaVerou/dabblet.css
Created August 5, 2013 03:45
Show Gist options
  • Save loai-kanou/6153348 to your computer and use it in GitHub Desktop.
Save loai-kanou/6153348 to your computer and use it in GitHub Desktop.
CSS transitions on stroke-dasharray
/**
* CSS transitions on stroke-dasharray
*/
circle {
stroke: red;
stroke-width: 10;
stroke-dasharray: 20, 20;
transition: 1s;
}
circle:hover {
stroke-dasharray: 40, 40;
stroke-width: 20;
}
<svg width="200" height="200">
<circle cx="100" cy="100" r="50" />
</svg>
// alert('Hello world!');
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment