Created
January 1, 2013 18:59
-
-
Save sashtown/4429341 to your computer and use it in GitHub Desktop.
Curved shadows with CSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.shadow:before, .shadow:after { | |
content: ''; | |
position: absolute; | |
width: 50%; | |
height: 10%; | |
z-index: -1; | |
bottom: 20px; | |
background: rgba(0,0,0,0.7); | |
-webkit-box-shadow: 0 10px 15px rgba(0,0,0,.7); | |
box-shadow: 0 10px 15px rgba(0,0,0,.7); | |
} | |
.shadow:after { | |
right: 10px; | |
left: auto; | |
-webkit-transform: rotate(3deg); | |
-moz-transform: rotate(3deg); | |
-ms-transform: rotate(3deg); | |
transform: rotate(3deg); | |
} | |
.shadow:before { | |
left: 10px; | |
right: auto; | |
-webkit-transform: rotate(-3deg); | |
-moz-transform: rotate(-3deg); | |
-ms-transform: rotate(-3deg); | |
transform: rotate(-3deg); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment