CodePen

HTML

            
              <div class="wrap">
  <div class="box"><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.</p></div>
  <div class="photo red">
  <div class="overlay"><p>Howdy Partner!</p></div>
  </div>
</div>

<div class="wrap">
  <div class="box"><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.</p></div>
  <div class="photo green">
  <div class="overlay"><p>Howdy Partner!</p></div>
  </div>
</div>

<div class="wrap">
  <div class="box"><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.</p></div>
  <div class="photo blue">
  <div class="overlay"><p>Howdy Partner!</p></div>
  </div>
</div>

<div class="wrap">
  <div class="box"><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.</p></div>
  <div class="photo orange">
    <div class="overlay"><p>Howdy Partner!</p></div>
  </div>
</div>
            
          
!

CSS

            
              .wrap {
  width:20%; 
  position:relative;
  float:left;
  margin-left:20px;
}
.box {
  padding:10px;
}
.photo {
  position:absolute;
  width:100%;
  height:100%;
  top:0;
  transition:opacity .5s linear;
  -moz-transition:opacity .5s linear;
  -webkit-transition:opacity .5s linear;
  border:3px solid black;
}
.photo:hover {
  opacity:0;
  transition:opacity .5s linear;
  -moz-transition:opacity .5s linear;
  -webkit-transition:opacity .5s linear;
}
.overlay {
  position:absolute;
  bottom:0;
  width:100%;
  text-align:center;
  background-color:rgba(0,0,0,.5);
  color:#fff;
}
.red {
  background-color:red;
}
.green {
  background-color:green;
}
.orange {
  background-color:orange;
}
.blue {
  background-color:blue;
}
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................