Bootstrap shadow is an effect used in web elements which provides important visual cues about objects' depth and directional movement.

Detailed documentation and more examples you can find in our Bootstrap box shadows Docs


Basic example

Add one of the following classes to any html element to achieve a desired depth of the shadow

.z-depth-1

.z-depth-1-half

.z-depth-2

.z-depth-3

.z-depth-4

.z-depth-5

      

        <div class="example z-depth-5">
            .z-depth-5
        </div>

      

    

Shadow on hover

hover me!

      

        <div class="example hoverable">
            hover me!
        </div>

      

    

Images with shadow

First sample image
First sample image
First sample image
      

        <!--Grid row-->
        <div class="row my-4">

            <!--Grid column-->
            <div class="col-lg-4 col-md-12">
                <img src="https://mdbootstrap.com/img/Photos/Others/images/81.jpg" class="img-fluid z-depth-2 rounded" alt="First sample image">
            </div>
            <!--Grid column-->

            <!--Grid column-->
            <div class="col-lg-4 col-md-6">
                <img src="https://mdbootstrap.com/img/Photos/Others/images/81.jpg" class="img-fluid z-depth-3 rounded" alt="First sample image">
            </div>
            <!--Grid column-->

            <!--Grid column-->
            <div class="col-lg-4 col-md-6">
                <img src="https://mdbootstrap.com/img/Photos/Others/images/81.jpg" class="img-fluid z-depth-4 rounded" alt="First sample image">
            </div>
            <!--Grid column-->

        </div>
        <!--Grid row-->

      

    

Detailed documentation and more examples you can find in our Bootstrap box shadows Docs