title: Pan effect on image using CSS
body: <p>I want a pan effect on image using CSS. I have got a zoom effect working but that's not what I want. I want the image to be the same height but have the pan effect in it.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.col_2 {
    width: 46%;
    margin-left: 2%;
    margin-right: 2%;
    margin-bottom: 50px;
    float: left;
    display: block;
  }
  
  .box {
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -ms-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.1);
    border: 1px solid #eeeeee;
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
  }
  
  .box:hover {
    box-shadow: 0px 2px 25px 0px rgba(0, 0, 0, 0.25);
  }
  
  .box .image {
    overflow: hidden;
  }
  
  .box .image img {
    width: 100%;
    max-width: 100%;
    -moz-transition: all 0.3s;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
  }
  
  .image:hover img {
    overflow: hidden;
    -moz-transform: scale(1.1);
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="col_2 box"&gt;
    &lt;a href="#" class="image"&gt;
      &lt;img src="http://ll-c.ooyala.com/e1/RoMXVvYjE6bIIVlTLF6Eel1wmw9xj9j_/promo322520974"&gt;&lt;/a&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>