Card Image hover Effect with icon Css

by Digvijay Naruka

HTML

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<section id="services" class="services">
  <div class="wrapper">
    <div class="service-row">
      <div class="service card">
        <div class="s-img">
          <img src="http://localhost/sbdc/wp-content/uploads/2017/09/Hire-Sales-and-Business-Development-for-Startup.jpg" />
          <div class="img-overlay"><i class="fa fa-eye" aria-hidden="true"></i> </div>
        </div>
        <div class="card-description">
          <h4><a href="business_development.html">Business Development</a></h4>
          <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, w
          </p>
        </div>
      </div>
      <!-- service card End -->
      <div class="service card">
        <div class="s-img">
          <img src="http://localhost/sbdc/wp-content/uploads/2017/09/Hire-Sales-and-Business-Development-for-Startup.jpg" />
          <div class="img-overlay"><i class="fa fa-eye" aria-hidden="true"></i> </div>
        </div>
        <div class="card-description">
          <h4><a href="business_development.html">Business Development</a></h4>
          <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, w
          </p>
        </div>
      </div>
      <!-- service card End -->
    </div>
  </div>
</section>

CSS

.services {
  padding: 10px 0 50px;
  text-align: center;
  background: #EEEEEE;
}

.services:after {
  content: "";
  display: table;
  clear: both;
}

.service-row {
  /*For card*/
  flex-wrap: wrap;
  display: flex;
  margin: 0 auto;
  max-width: 1300px;
  margin-bottom: 20px;
}

.service-row:after {
  content: '';
  display: block;
  clear: both;
}

.service {
  width: 30.33%;
  /*float: left;*/
  /*box-sizing: border-box;*/
}

.card {
  /* Add shadows to create the "card" effect */
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  //box-shadow: 1px 1px 3px #888;
  background: #fff;
  transition: 0.3s;
  min-width: 300px;
  max-width: 350px;
  border: 1px solid gray;
  border-top: 10px solid #f1d204;
  ;
  min-height: 250px;
  margin: 0 auto;
  margin-bottom: 20px;
  position: relative;
}


/* On mouse-over, add a deeper shadow */

.card:hover {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.service:after {
  content: '' display: table-row;
  clear: both;
}

.service:nth-of-type(4) {
  clear: both;
}

.service:hover .s-img img {
  opacity: 0.5;
  padding-top: 6px;
  box-shadow: 0 2px 2px 2px #ffce58;
}

.service:hover .img-overlay {
  height: 55%
}

.img-overlay i {
  color: white;
  font-size: 20px;
  position: absolute;
  overflow: hidden;
  bottom: 50%;
  left: 50%;
  transform: translate(-100%, 80%);
}

.img-overlay {
  position: absolute;
  background-color: #ffce58;
  opacity: 0.9;
  /*   overflow: hidden; */
  width: 100%;
  height: 0%;
  bottom: 45%;
  left: 0;
  right: 0;
  transition: .5s ease;
}

.service:hover h4 a {
  /*color: #3498db;*/
  color: #f1d204;
}

.service .s-img {
  margin: 0 auto;
  padding: 5px 0;
  overflow: hidden;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  opacity: 1;
  line-height: 0;
}

.service .s-img img {
  width: 90%;
  height: 200px;
  -webkit-transition: all 0.3s...