Bootstrap snippet. Box shadow effect

This Bootstrap snippet. Box shadow effect, was created to help web designers,
front-end developers and back-end developer save time. Use it in your project and build your app faster,
You can also download the HTML, CSS, and JS code.
tags: div,box,shadow

HTML code

This is the html code used to create this bootstrap snippet, You can copy, paste, change, customize and run the following HTML code to get a result like the one shown in the preview selection

<div class="container bootstrap snippets">
    <div class="row">
        <div class="col-sm-2 text-center">
    		<p>Without shadow</p>
    		<div class="box-shadow-demo"></div>
    	</div>
    	<div class="col-sm-2 text-center">
    		<p>.z-depth-1</p>
    		<div class="box-shadow-demo z-depth-1"></div>
    	</div>
    	<div class="col-sm-2 text-center">
    		<p>.z-depth-2</p>
    		<div class="box-shadow-demo z-depth-2"></div>
    	</div>
    	<div class="col-sm-2 text-center">
    		<p>.z-depth-3</p>
    		<div class="box-shadow-demo z-depth-3"></div>
    	</div>
    	<div class="col-sm-2 text-center">
    		<p>.z-depth-4</p>
    		<div class="box-shadow-demo z-depth-4"></div>
    	</div>
    	<div class="col-sm-2 text-center">
    		<p>.z-depth-5</p>
    		<div class="box-shadow-demo z-depth-5"></div>
    	</div>
    </div>
</div>

CSS code

This is the css code used to create this bootstrap snippet, You can copy, paste, change, customize and run the following CSS code to get a result Like the one shown in the preview selection

body{margin-top:20px;}

.box-shadow-demo {
    background-color: #009688;
    height: 100px;
    width: 100px;
    margin: 20px auto;
}
.z-depth-1 {
    -webkit-box-shadow: 0 1px 4px 0 rgba(0,0,0,0.37);
    box-shadow: 0 1px 4px 0 rgba(0,0,0,0.37);
}
.z-depth-2 {
    -webkit-box-shadow: 0 2px 2px 0 rgba(0,0,0,0.2),0 6px 10px 0 rgba(0,0,0,0.3);
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.2),0 6px 10px 0 rgba(0,0,0,0.3);
}
.z-depth-3 {
    -webkit-box-shadow: 0 11px 7px 0 rgba(0,0,0,0.19),0 13px 25px 0 rgba(0,0,0,0.3);
    box-shadow: 0 11px 7px 0 rgba(0,0,0,0.19),0 13px 25px 0 rgba(0,0,0,0.3);
}
.z-depth-4 {
    -webkit-box-shadow: 0 14px 12px 0 rgba(0,0,0,0.17),0 20px 40px 0 rgba(0,0,0,0.3);
    box-shadow: 0 14px 12px 0 rgba(0,0,0,0.17),0 20px 40px 0 rgba(0,0,0,0.3);
}
.z-depth-5 {
    -webkit-box-shadow: 0 17px 17px 0 rgba(0,0,0,0.15),0 27px 55px 0 rgba(0,0,0,0.3);
    box-shadow: 0 17px 17px 0 rgba(0,0,0,0.15),0 27px 55px 0 rgba(0,0,0,0.3);
}
                                    

Similar snippets

Bootstrap snippet bs4 Message Chat Box

bs4 Message Chat Box

View

Bootstrap snippet direct chat box

direct chat box

View

Bootstrap snippet box funny

box funny

View

Bootstrap snippet login box

login box

View

Bootstrap snippets. Box shadow effect

About this bootstrap snippet

This bootstrap snippet, Box shadow effect, was published on Feb 1st 2016, 21:28 by Dey Dey and it is free.

We hope you will enjoy this awesome snippet and stay tuned for the latest updates, bootdey snippets are already used in thousands of blogs, websites and projects. We believe it will save your precious time and gives trendy look to your next web project.

We always try to offer the best beautiful and responsive source of Bootstrap code examples and components.

This snippet currectly have 5.2K views, Using this bootstrap snippet you have the following benefits:

Bootstrap 3.3.6

This snippet is based on bootstrap 3.3.6 and the grid system of this framework

Responsive

Based on bootstrap framework makes all the layouts perfectly responsive for all devices

Crossbrowser compatibility

Tested on all major browsers, it works smoothly on all of them

Jquery plugins

Great built-in plugins with jquery framework, you can easy to change all declarations

semantic html 5

Built on html / css3 the code quality is really amazing

Simple Integration

This snippet can be simply integrated on existing sites and new ones too, all you need to do is copy the code and start working

Rated 5/5 based on 8 reviews