jcadima
6/22/2017 - 7:51 PM

One block image background hover

One block image background hover



<div class="hover-zoom" style="background-position: bottom right; background-image: url(&quot;https://c1.staticflickr.com/1/70/222707421_346dd12c17_z.jpg&quot;)">
</div>


<style>
  
.hover-zoom {
  float: left;
  margin: 0;
  height: 180px;
  width: 300px;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-size: 110%;
  background-position: center;
  background-repeat: no-repeat;
  background-color: gray;
  position: relative;
}
.hover-zoom:hover {
  background-size: 100%;
}

  
  
</style>