Bootstrap shadows
Objects in material design possess similar qualities to objects in the physical world. In the physical world, objects can be stacked or affixed to one another, but cannot pass through each other. Objects cast shadows and reflect light.
Shadows provide important visual cues about objects’ depth and directional movement. They are the only visual cue indicating the amount of separation between surfaces. An object’s elevation determines the appearance of its shadow.
Creating shadows with MDB is very easy. You only need to add one of the shadow classes to chosen element.
Examples
Add one of the classes below to any html element to achieve a desired depth of the shadow.
no shadow
.z-depth-1
.z-depth-2
.z-depth-3
.z-depth-4
.z-depth-5
<div class="example z-depth-5">
</div>
Shadow on hover
You can achieve a hover effect with shadow by adding .hoverable
class to any html element
hover me!
<div class="example hoverable">
</div>