"Material Design Shadow Depth"
Bootstrap 3.3.0 Snippet by mirchu

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.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="container"> <div class="row"> <div class="row"> <div class="col-sm-6 col-md-3"> <div class="thumbnail shadow-depth-1"> <div class="caption"> <h3>Shadow Depth 1</h3> </div> </div> </div> <div class="col-sm-6 col-md-3"> <div class="thumbnail shadow-depth-2"> <div class="caption"> <h3>Shadow Depth 2</h3> </div> </div> </div> <div class="col-sm-6 col-md-3"> <div class="thumbnail shadow-depth-3"> <div class="caption"> <h3>Shadow Depth 3</h3> </div> </div> </div> <div class="col-sm-6 col-md-3"> <div class="thumbnail shadow-depth-4"> <div class="caption"> <h3>Shadow Depth 4</h3> </div> </div> </div> </div> </div> </div>
.container{ margin-top:15px;} .thumbnail { background-color: #006064; height: 200px; border: none; border-radius: 0px; text-align:center; } .thumbnail h3{color: #fff;line-height: 174px;margin: 0px;} .shadow-depth-1{ -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12); -moz-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12); box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12); } .shadow-depth-2{ -webkit-box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); -moz-box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); } .shadow-depth-3{ -webkit-box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19); -moz-box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19); box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19); } .shadow-depth-4{ -webkit-box-shadow: 0 16px 28px 0 rgba(0, 0, 0, 0.22), 0 25px 55px 0 rgba(0, 0, 0, 0.21); -moz-box-shadow: 0 16px 28px 0 rgba(0, 0, 0, 0.22), 0 25px 55px 0 rgba(0, 0, 0, 0.21); box-shadow: 0 16px 28px 0 rgba(0, 0, 0, 0.22), 0 25px 55px 0 rgba(0, 0, 0, 0.21); }

Related: See More


Questions / Comments: