Skip to content

Instantly share code, notes, and snippets.

@LeaVerou
Last active July 2, 2018 13:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LeaVerou/ac992540e2ea87f58be554ea214dac55 to your computer and use it in GitHub Desktop.
Save LeaVerou/ac992540e2ea87f58be554ea214dac55 to your computer and use it in GitHub Desktop.
Marching ants selection
/**
* 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;
}
}
<svg>
<rect width="100%" height="100%" />
</svg>
// alert('Hello world!');
{"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