Skip to content

Instantly share code, notes, and snippets.

@igor-arkhipov
Forked from csssecrets/dabblet.css
Created December 3, 2016 04:11
Show Gist options
  • Save igor-arkhipov/c50240579d3ae712fbd5ee2983076bb1 to your computer and use it in GitHub Desktop.
Save igor-arkhipov/c50240579d3ae712fbd5ee2983076bb1 to your computer and use it in GitHub Desktop.
Marching ants border
/**
* Marching ants border
*/
@keyframes ants { to { background-position: 100% 100% } }
div {
padding: 1em;
border: 1px solid transparent;
background: linear-gradient(white, white) padding-box,
repeating-linear-gradient(-45deg, black 0, black 25%, transparent 0, transparent 50%) 0 / .6em .6em;
animation: ants 12s linear infinite;
max-width: 20em;
font: 100%/1.6 Baskerville, Palatino, serif;
}
<div>Bacon ipsum dolor amet eu adipisicing elit tongue ground round ex fatback proident kielbasa ham hock. Sausage beef beef ribs aliquip t-bone mollit. Quis beef tri-tip sunt, cupim ut magna salami t-bone. Ut laboris bresaola ribeye biltong landjaeger. Chuck pork belly sed sausage.</div>
// alert('Hello world!');
{"view":"split","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