Skip to content

Instantly share code, notes, and snippets.

@iamvdo
Created January 19, 2012 22:20
Show Gist options
  • Save iamvdo/1643256 to your computer and use it in GitHub Desktop.
Save iamvdo/1643256 to your computer and use it in GitHub Desktop.
Untitled
html{background:#eee;}
div{margin:100px;}
div:before{
content: '';
position:absolute;
z-index:5;
width: 130px;
height: 30px;
border:1px solid rgba(0, 0, 0, 0.05);
border-left: 1px dashed rgba(0, 0, 0, 0.1);
border-right: 1px dashed rgba(0, 0, 0, 0.1);
background: rgba(0, 0, 0, 0.1);
background: linear-gradient(rgba(255,255,255,0),rgba(255,255,255,0.05) 50%,rgba(255,255,255,0)), rgba(0,0,0,0.1);
box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.2);
transform:translate(-50px,10px) skew(10deg,10deg) rotate(-50deg);
}
<div><img src="http://lorempixel.com/400/200/nature/" alt="" /></div>
{"view":"split","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment