Last active
July 2, 2018 13:28
-
-
Save LeaVerou/ac992540e2ea87f58be554ea214dac55 to your computer and use it in GitHub Desktop.
Marching ants selection
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
/** | |
* Marching ants selection | |
*/ | |
rect { | |
stroke: black; | |
stroke-width: 2px; | |
stroke-dasharray: 5px 3px; | |
animation: marching-ants .6s linear infinite; | |
fill: none; | |
} | |
svg { | |
width: 600px; | |
height: 400px; | |
} | |
@keyframes marching-ants { | |
to { | |
stroke-dashoffset: -8px; | |
} | |
} |
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> | |
<rect width="100%" height="100%" /> | |
</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":"","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment