Created
November 5, 2012 04:07
-
-
Save Ricardo-Diaz/4015263 to your computer and use it in GitHub Desktop.
CSS: Box Shadow Both Lifted Corner Extreme
This file contains hidden or 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
This is expands on the effect 2 and will increase the angle of the shadows. | |
The HTML | |
<div class="box effect5"> | |
<h3>Effect 5</h3> | |
</div> | |
The CSS | |
.box h3{ | |
text-align:center; | |
position:relative; | |
top:80px; | |
} | |
.box { | |
width:70%; | |
height:200px; | |
background:#FFF; | |
margin:40px auto; | |
} | |
/*================================================== | |
* Effect 5 | |
* ===============================================*/ | |
.effect5 | |
{ | |
position: relative; | |
} | |
.effect5:before, .effect5:after | |
{ | |
z-index: -1; | |
position: absolute; | |
content: ""; | |
bottom: 25px; | |
left: 10px; | |
width: 50%; | |
top: 80%; | |
max-width:300px; | |
background: #777; | |
-webkit-box-shadow: 0 35px 20px #777; | |
-moz-box-shadow: 0 35px 20px #777; | |
box-shadow: 0 35px 20px #777; | |
-webkit-transform: rotate(-8deg); | |
-moz-transform: rotate(-8deg); | |
-o-transform: rotate(-8deg); | |
-ms-transform: rotate(-8deg); | |
transform: rotate(-8deg); | |
} | |
.effect5:after | |
{ | |
-webkit-transform: rotate(8deg); | |
-moz-transform: rotate(8deg); | |
-o-transform: rotate(8deg); | |
-ms-transform: rotate(8deg); | |
transform: rotate(8deg); | |
right: 10px; | |
left: auto; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment