Skip to content

Instantly share code, notes, and snippets.

@russgossett
Forked from anonymous/index.slim
Created July 1, 2013 12:28
Show Gist options
  • Save russgossett/5900374 to your computer and use it in GitHub Desktop.
Save russgossett/5900374 to your computer and use it in GitHub Desktop.
CSS Page curls
ul.box
li hello
li you the man
li yeah you are
ul.box li {
list-style-type: none;
margin: 0 30px 30px 0;
padding: 0;
width: 204px;
height: 113px;
position: relative;
float: left;
background: #ffffff; /* old browsers */
-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
}
ul.box li:after {
z-index: -1;
position: absolute;
background: transparent;
width: 70%;
height: 55%;
content: '';
right: 10px;
bottom: 10px;
-webkit-transform: skew(15deg) rotate(6deg);
-webkit-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
ul.box li:before {
z-index: -2;
position: absolute;
background: transparent;
width: 70%;
height: 55%;
content: '';
left: 10px;
bottom: 10px;
-webkit-transform: skew(-15deg) rotate(-6deg);
-webkit-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
@russgossett
Copy link
Author

CSS page curls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment