Created
December 14, 2012 17:18
-
-
Save ideefixe/4287094 to your computer and use it in GitHub Desktop.
Advanced Box Shadow
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
/** | |
* Advanced Box Shadow | |
* | |
*/ | |
.box h3{ | |
text-align:center; | |
position:relative; | |
top:80px; | |
} | |
.box { | |
width:70%; | |
height:200px; | |
background:#FFF; | |
margin:40px auto; | |
} | |
/*================================================== | |
* Effect 6 | |
* ===============================================*/ | |
.effect6 | |
{ | |
position:relative; | |
border:1px solid rgba(0, 0, 0, .2); | |
} | |
.effect6:before, .effect6:after | |
{ | |
content:""; | |
position:absolute; | |
z-index:-1; | |
-webkit-box-shadow:0 0 30px rgba(0,0,0,0.4); | |
-moz-box-shadow:0 0 30px rgba(0,0,0,0.4); | |
box-shadow:0 0 10px rgba(0,0,0,0.2), 0 0 10px rgba(0,0,0,0.4); | |
top:50%; | |
bottom:0; | |
left:20px; | |
right:20px; | |
-moz-border-radius:100px / 30px; | |
border-radius:100px / 30px; | |
} | |
.effect6:after | |
{ | |
right:10px; | |
left:auto; | |
-webkit-transform:skew(8deg) rotate(3deg); | |
-moz-transform:skew(8deg) rotate(3deg); | |
-ms-transform:skew(8deg) rotate(3deg); | |
-o-transform:skew(8deg) rotate(3deg); | |
transform:skew(8deg) rotate(3deg); | |
} |
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
<div class="box effect6"> | |
<h3>Add to Cart</h3> | |
</div> |
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
// alert('Hello world!'); |
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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment