-
-
Save loai-kanou/6153348 to your computer and use it in GitHub Desktop.
CSS transitions on stroke-dasharray
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<svg width="200" height="200"> | |
<circle cx="100" cy="100" r="50" /> | |
</svg> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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