compu b hover

by pphheerroonn

HTML

<div class="cando-hover">
  <img src="https://i1.wp.com/biconic.online/wp-content/uploads/2014/12/photo-38.jpg" alt="Home Page tile">
  <div class="cando-content">
    <h4>
    Businesses of All Sizes
    </h4>
    We work with businesses of all sizes to identify the equipment, training and ongoing support you need to seamlessly integrate iPad, Mac and more into your business.
  </div>
</div>

CSS

div.cando-hover {
  display: block;
  position: relative;
  float: left;
  overflow: hidden;
  margin: 0;
  width:300px;
  height:150px;
}
.cando-content {
  position: absolute;
  height: 100%;
  background: black;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 10px 20px;
  opacity: 1;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
}

.cando-content h4 {text-align: center; padding: 55px;}

.cando-hover:before {bottom: 0px;left: 0px;}
.cando-hover .cando-content {left: 0; bottom: -66%;}
.cando-hover:hover .cando-content {bottom: 0;}