Skip to content

Instantly share code, notes, and snippets.

@jcsrb
Created June 26, 2012 21:00
Show Gist options
  • Save jcsrb/2998978 to your computer and use it in GitHub Desktop.
Save jcsrb/2998978 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
div{
margin: 100px auto;
height: 300px;
width: 300px;
background: red;
padding: 5px;
background-clip: content-box;
border: 1px solid blue;
border-width: 50px;
border-image: linear-gradient(45deg, black 25%, transparent 25%, transparent 75%, black 75%, black);
border-image-slice: 50;
border-image-repeat: repeat;
transition: border-image-slice 1s ease-in-out;
}
div:hover{
border-image-slice: 5
}
<div></div><!-- content to be placed inside <body>…</body> -->
{"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