Created
December 27, 2013 09:46
-
-
Save anonymous/8144696 to your computer and use it in GitHub Desktop.
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
.box{ | |
background: url(http://store.aksaramaya.com/publication/book/cover/9fb43815385cde231e67d05de91e58_175x250.png) no-repeat; | |
height:250px; | |
width:175px; | |
box-shadow: 1px 3px 10px rgba(0,0,0,.5); | |
margin:40px auto; | |
} | |
.shd{ | |
position:relative; | |
} | |
.shd:before{ | |
background: -moz-linear-gradient(left, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.5) 11%, rgba(0,0,0,0.2) 36%, rgba(0,0,0,0.1) 53%, rgba(0,0,0,0) 76%, rgba(0,0,0,0) 100%); /* FF3.6+ */ | |
background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(0,0,0,0.6)), color-stop(11%,rgba(0,0,0,0.5)), color-stop(36%,rgba(0,0,0,0.2)), color-stop(53%,rgba(0,0,0,0.1)), color-stop(76%,rgba(0,0,0,0)), color-stop(100%,rgba(0,0,0,0))); /* Chrome,Safari4+ */ | |
background: -webkit-linear-gradient(left, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0.5) 11%,rgba(0,0,0,0.2) 36%,rgba(0,0,0,0.1) 53%,rgba(0,0,0,0) 76%,rgba(0,0,0,0) 100%); /* Chrome10+,Safari5.1+ */ | |
background: -o-linear-gradient(left, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0.5) 11%,rgba(0,0,0,0.2) 36%,rgba(0,0,0,0.1) 53%,rgba(0,0,0,0) 76%,rgba(0,0,0,0) 100%); /* Opera 11.10+ */ | |
background: -ms-linear-gradient(left, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0.5) 11%,rgba(0,0,0,0.2) 36%,rgba(0,0,0,0.1) 53%,rgba(0,0,0,0) 76%,rgba(0,0,0,0) 100%); /* IE10+ */ | |
background: linear-gradient(to right, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0.5) 11%,rgba(0,0,0,0.2) 36%,rgba(0,0,0,0.1) 53%,rgba(0,0,0,0) 76%,rgba(0,0,0,0) 100%); /* W3C */ | |
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#99000000', endColorstr='#00000000',GradientType=1 ); /* IE6-9 */ | |
position: absolute; | |
content: ""; | |
left: 0px; | |
width: 20px; | |
height:100%; | |
} | |
.shd:after{ | |
background: -moz-linear-gradient(right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.5) 11%, rgba(0,0,0,0.2) 36%, rgba(0,0,0,0.1) 53%, rgba(0,0,0,0) 76%, rgba(0,0,0,0) 100%); /* FF3.6+ */ | |
background: -webkit-gradient(linear, right top, left top, color-stop(0%,rgba(0,0,0,0.6)), color-stop(11%,rgba(0,0,0,0.5)), color-stop(36%,rgba(0,0,0,0.2)), color-stop(53%,rgba(0,0,0,0.1)), color-stop(76%,rgba(0,0,0,0)), color-stop(100%,rgba(0,0,0,0))); /* Chrome,Safari4+ */ | |
background: -webkit-linear-gradient(right, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0.5) 11%,rgba(0,0,0,0.2) 36%,rgba(0,0,0,0.1) 53%,rgba(0,0,0,0) 76%,rgba(0,0,0,0) 100%); /* Chrome10+,Safari5.1+ */ | |
background: -o-linear-gradient(right, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0.5) 11%,rgba(0,0,0,0.2) 36%,rgba(0,0,0,0.1) 53%,rgba(0,0,0,0) 76%,rgba(0,0,0,0) 100%); /* Opera 11.10+ */ | |
background: -ms-linear-gradient(right, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0.5) 11%,rgba(0,0,0,0.2) 36%,rgba(0,0,0,0.1) 53%,rgba(0,0,0,0) 76%,rgba(0,0,0,0) 100%); /* IE10+ */ | |
background: linear-gradient(to left, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0.5) 11%,rgba(0,0,0,0.2) 36%,rgba(0,0,0,0.1) 53%,rgba(0,0,0,0) 76%,rgba(0,0,0,0) 100%); /* W3C */ | |
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#99000000', endColorstr='#00000000',GradientType=1 ); /* IE6-9 */ | |
position: absolute; | |
content: ""; | |
right: 0px; | |
width: 20px; | |
height:100%; | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<div class="box shd"></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment