Multiple Box Shadow Effects CSS3 Without Photoshop

by muthu 2014-01-27 11:49:32

Multiple Box Shadow Effects CSS3 Without Photoshop

---------------------------------------------- DEMO ----------------------------------------------------
box_shadow.jpg
---------------------------------------------- CSS3 ----------------------------------------------------
body { background:#efefef; color:#888; padding:0; margin:0; font: 72.5% 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.container{ width:300px; margin:30px auto; padding:25px; min-height:400px; height:auto; }
.box h3{ text-align:center; position:relative; color:#dd0449; margin:0; }
.box { width:200px; height:200px; background:#FFF; border:1px solid #CCC; padding:10PX; }
.effect1{ -webkit-box-shadow: 0 10px 6px -6px #333; -moz-box-shadow: 0 10px 6px -6px #333; box-shadow: 0 10px 6px -6px #333; }
.effect2 { position: relative; }
.effect2:before, .effect2:after { z-index: -1; position: absolute; content: ""; bottom: 15px; left: 10px; width: 50%; top: 80%; max-width:300px; background: #333;
-webkit-box-shadow: 0 15px 10px #333; -moz-box-shadow: 0 15px 10px #333; box-shadow: 0 15px 10px #333; -webkit-transform: rotate(-3deg); -moz-transform: rotate(-3deg);
-o-transform: rotate(-3deg); -ms-transform: rotate(-3deg); transform: rotate(-3deg); }
.effect2:after { -webkit-transform: rotate(3deg); -moz-transform: rotate(3deg); -o-transform: rotate(3deg); -ms-transform: rotate(3deg); transform: rotate(3deg);
right: 10px; left: auto; }
.effect3 { position: relative; }
.effect3:before { z-index: -1; position: absolute; content: ""; bottom: 15px; left: 10px; width: 50%; top: 80%; max-width:300px; background: #333;
-webkit-box-shadow: 0 15px 10px #333; -moz-box-shadow: 0 15px 10px #333; box-shadow: 0 15px 10px #333; -webkit-transform: rotate(-3deg); -moz-transform: rotate(-3deg);
-o-transform: rotate(-3deg); -ms-transform: rotate(-3deg); transform: rotate(-3deg); }
.effect4 { position: relative; } .effect4:after { z-index: -1; position: absolute; content: ""; bottom: 15px; right: 10px; left: auto;
width: 50%; top: 80%; max-width:300px; background: #333; -webkit-box-shadow: 0 15px 10px #333; -moz-box-shadow: 0 15px 10px #333; box-shadow: 0 15px 10px #333;
-webkit-transform: rotate(3deg); -moz-transform: rotate(3deg); -o-transform: rotate(3deg); -ms-transform: rotate(3deg); transform: rotate(3deg); }
.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: #333; -webkit-box-shadow: 0 35px 20px #333; -moz-box-shadow: 0 35px 20px #333; box-shadow: 0 35px 20px #333; -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; }
.effect6 { position:relative; -webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
-moz-box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset; box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset; }
.effect6:before, .effect6:after { content:""; position:absolute; z-index:-1; -webkit-box-shadow:0 0 20px rgba(0,0,0,0.Cool
; -moz-box-shadow:0 0 20px rgba(0,0,0,0.Cool
;
box-shadow:0 0 20px rgba(0,0,0,0.Cool
; top:50%; bottom:0; left:10px; right:10px; -moz-border-radius:100px / 10px; border-radius:100px / 10px; }
.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); }
.effect7 { position:relative; -webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
-moz-box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset; box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset; }
.effect7:before, .effect7:after { content:""; position:absolute; z-index:-1; -webkit-box-shadow:0 0 20px rgba(0,0,0,0.Cool
; -moz-box-shadow:0 0 20px rgba(0,0,0,0.Cool
;
box-shadow:0 0 20px rgba(0,0,0,0.Cool
; top:0; bottom:0; left:10px; right:10px; -moz-border-radius:100px / 10px; border-radius:100px / 10px; }
.effect7: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); }
.effect8 { position:relative; -webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
-moz-box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset; box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset; }
.effect8:before, .effect8:after { content:""; position:absolute; z-index:-1; -webkit-box-shadow:0 0 20px rgba(0,0,0,0.Cool
; -moz-box-shadow:0 0 20px rgba(0,0,0,0.Cool
;
box-shadow:0 0 20px rgba(0,0,0,0.Cool
; top:10px; bottom:10px; left:0; right:0; -moz-border-radius:100px / 10px; border-radius:100px / 10px; }
.effect8: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); }

---------------------------------------------- HTML5 ---------------------------------------------------
<section class="container">
<h3>Drap Shadow</h3><div class="box effect1"><img src="1.jpg" ></div>
<h3>Bottom Left And Right Shadow</h3><div class="box effect2"><img src="2.jpg" ></div>
<h3>Bottom Left Shadow</h3><div class="box effect3"><img src="3.jpg" ></div>
<h3>Bottom Right Shadow</h3><div class="box effect4"><img src="4.jpg" ></div>
<h3>Shadow 5</h3><div class="box effect5"><img src="5.jpg" ></div>
<h3>Shadow 6</h3><div class="box effect6"><img src="6.jpg" ></div>
<h3>Shadow All Side</h3><div class="box effect7"><img src="8.jpg" ></div>
<h3>Shadow Left and Right</h3><div class="box effect8"><img src="9.jpg" ></div>
<h3>Content Box Shadow</h3>
<div class="box effect8">
Internet Explorer 8 is the latest version of the familiar web browser you are most comfortable using, helping you get everything you want
</div>
</section>

---------------------------------------------- IMAGES --------------------------------------------------
9.jpg8.jpg6.jpg5.jpg4.jpg3.jpg2.jpg1.jpg
1524
like
0
dislike
0
mail
flag

You must LOGIN to add comments