Bootstrap hover effects

Bootstrap hover effect appears when user positions computer cursor over an element without activating it. Hover effects make a website more interactive.

However, we don't recommend to mix hover effects with functional elements (like dropdown on hover or hidden buttons visible only after hovering) because such approach isn't mobile-friendly.

MDB is a mobile-first framework, so we attach great importance to make each component easy to use for touch screens.

That's why our hover effects are gentle and decorative.


Basic examples

smaple image

Strong overlay

smaple image

Light overlay

smaple image

Super light overlay

smaple image

Zoom effect

Shadow effect


smaple image

Light blue overlay

                                    
<View overlay="red-strong">
  <img src="https://mdbootstrap.com/img/Photos/Horizontal/People/6-col/img%20(7).jpg" className="img-fluid" alt="" />
  <Mask className="flex-center">
    <p className="white-text">Strong overlay</p>
  </Mask>
</View>
                                    
                                

Strong red overlay

                                    
<View overlay="red-light">
  <img src="https://mdbootstrap.com/img/Photos/Horizontal/People/6-col/img%20(7).jpg" className="img-fluid" alt="" />
  <Mask className="flex-center">
    <p className="white-text">light overlay</p>
  </Mask>
</View>
                                    
                                

Super light green overlay

                                    
<View overlay="red-slight">
  <img src="https://mdbootstrap.com/img/Photos/Horizontal/People/6-col/img%20(7).jpg" className="img-fluid" alt="" />
  <Mask className="flex-center">
    <p className="white-text">Super light overlay</p>
  </Mask>
</View>
                                    
                                

Zoom effect

                                    
<View zoom>
  <img src="https://mdbootstrap.com/img/Photos/Others/nature-sm.jpg" className="img-fluid" alt="" />
  <Mask className="flex-center">
    <p className="white-text">Zoom effect</p>
  </Mask>
</View>
                                    
                                

Shadow effect

                                    
<img src="https://mdbootstrap.com/img/Photos/Others/nature-sm.jpg" className="img-fluid rounded-circle hoverable" alt="" />
                                    
                                

Colors and intensity

Use one of the overlay props below to change the color and intensity of the overlay.

Light overlay


Image with a light blue overlay.

blue-light

Image with a light red overlay.

red-light

Image with a light pink overlay.

pink-light

Image with a light purple overlay.

purple-light

Image with a light indigo overlay.

indigo-light

Image with a light cyan overlay.

cyan-light

Image with a light teal overlay.

teal-light

Image with a light green overlay.

green-light

Image with a light lime overlay.

lime-light

Image with a light yellow overlay.

yellow-light

Image with a light orange overlay.

orange-light

Image with a light brown overlay.

brown-light

Image with a light grey overlay.

grey-light

Image with a light blue-grey overlay.

blue-grey-light

Image with a light black overlay.

black-light

Image with a light stylish overlay.

stylish-light

Image with a light white overlay.

white-light

Strong overlay


Image with a strong blue overlay.

blue-strong

Image with a strong red overlay.

red-strong

Image with a strong pink overlay.

pink-strong

Image with a strong purple overlay.

purple-strong

Image with a strong indigo overlay.

indigo-strong

Image with a strong cyan overlay.

cyan-strong

Image with a strong teal overlay.

teal-strong

Image with a strong green overlay.

green-strong

Image with a strong lime overlay.

lime-strong

Image with a strong yellow overlay.

yellow-strong

Image with a strong orange overlay.

orange-strong

Image with a strong brown overlay.

brown-strong

Image with a strong grey overlay.

grey-strong

Image with a strong blue-grey overlay.

blue-grey-strong

Image with a strong black overlay.

black-strong

Image with a strong stylish overlay.

stylish-strong

Image with a strong white overlay.

white-strong



Super Light overlay


Image with a super light blue overlay.

blue-slight

Image with a super light red overlay.

red-slight

Image with a super light pink overlay.

pink-slight

Image with a super light purple overlay.

purple-slight

Image with a super light indigo overlay.

indigo-slight

Image with a super light cyan overlay.

cyan-slight

Image with a super light teal overlay.

teal-slight

Image with a super light green overlay.

green-slight

Image with a super light lime overlay.

lime-light

Image with a super light yellow overlay.

yellow-slight

Image with a super light orange overlay.

orange-slight

Image with a super light brownImage with a super light blue overlay. overlay.

brown-slight

Image with a super light grey overlay.

grey-slight

Image with a super light blue-grey overlay.

blue-grey-slight

Image with a super light black overlay.

black-slight

Image with a super light stylish overlay.

stylish-slight

Image with a super light white overlay.

white-slight