-
-
Save eliellis/4522664 to your computer and use it in GitHub Desktop.
box-shadow vs filter: drop-shadow 2
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
/** | |
* box-shadow vs filter: drop-shadow 2 | |
*/ | |
body{ | |
background: lightblue; | |
font: 16px sans-serif; | |
margin: 50px; | |
} | |
.birch{ | |
margin-right: auto; | |
margin-left: auto; | |
position: relative; | |
display: block; | |
height: 256px; | |
width: 256px; | |
background: url(http://a.poptart.in/M82R/birch.png); | |
} | |
.filter-drop-shadow { | |
-webkit-filter: drop-shadow(0 1px 15px rgba(0,0,0,.2)); | |
-moz-filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); | |
-ms-filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); | |
-o-filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); | |
filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); | |
} | |
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="birch filter-drop-shadow"></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
{"view":"split-vertical","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