"card effect"
Bootstrap 3.0.0 Snippet by armis

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="box effect1"> <h1>Effect 1</h1> </div> <div class="box effect2"> <h1>Effect 2</h1> </div> <div class="box effect3"> <h1>Effect 3</h1> </div>
body { background-color: #eee; } .box { width: 70%; height: 100px; background-color: #fff; margin: 20px auto; } .box h1 { text-align: center; margin: 0; line-height: 100px; } /* effect 1 */ .effect1{ -webkit-box-shadow: 0 10px 6px -6px #777; -moz-box-shadow: 0 10px 6px -6px #777; box-shadow: 0 10px 6px -6px #777; } /* effect 2 */ .effect2 { position: relative; } .effect2:before, .effect2:after { content: ''; width: 50%; max-width: 300px; position: absolute; top: 50%; bottom: 15px; left: 10px; z-index: -1; background-color: #777; /* not necessary */ -webkit-box-shadow: 0 15px 10px #777; -moz-box-shadow: 0 15px 10px #777; box-shadow: 0 15px 10px #777; -webkit-transform: rotate(-3deg); -moz-transform: rotate(-3deg); -o-transform: rotate(-3deg); -ms-transform: rotate(-3deg); transform: rotate(-3deg); } .effect2:after { right: 10px; left: auto; -webkit-transform: rotate(3deg); -moz-transform: rotate(3deg); -o-transform: rotate(3deg); -ms-transform: rotate(3deg); transform: rotate(3deg); } /* effect 3 */ .effect3 { position: relative; } .effect3:after { content: ''; width: 50%; max-widht: 300px; position: absolute; z-index: -1; top: 80%; right: 10px; bottom: 15px; left: auto; background-color: #777; -webkit-box-shadow: 0 15px 10px #777; -moz-box-shadow: 0 15px 10px #777; box-shadow: 0 15px 10px #777; -webkit-transform: rotate(3deg); -moz-transform: rotate(3deg); -ms-transform: rotate(3deg); -o-transform: rotate(3deg); transform: rotate(3deg); }

Related: See More


Questions / Comments: