Simple CSS Image Gallery with Image Zoom

<div class="gallery cf">
  <div>
    <img src="http://vizua.net/dummy.jpg" />
  </div>
  <div>
     <img src="http://vizua.net/dummy.jpg" />
  </div>
  <div>
     <img src="http://vizua.net/dummy.jpg" />
  </div>
  <div>
     <img src="http://vizua.net/dummy.jpg" />
  </div>
  <div>
     <img src="http://vizua.net/dummy.jpg" />
  </div>
  <div>
     <img src="http://vizua.net/dummy.jpg" />
  </div>
</div>
.gallery {
  width: 640px;
  margin: 0 auto;
  padding: 5px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.3);
box-sizing: border-box;
}

.gallery > div {
  position: relative;
  float: left;
  padding: 5px;
}

.gallery > div > img {
  display: block;
  width: 200px;
  transition: .1s transform;
  transform: translateZ(0); /* hack */
}

.gallery > div:hover {
  z-index: 1;
}

.gallery > div:hover > img {
  transform: scale(1.5,1.5);
  transition: .3s transform;
}

.cf:before, .cf:after {
  display: table;
  content: "";
  line-height: 0;
}

.cf:after {
  clear: both;
}


Related Snippets