title: Open/close loop when using transition on image
body: <p><strong>-- people suffering from epilepsy -- DON'T LAUNCH --</strong></p>
  
  <p>I prepared some kind of transition on image (translate + scale when hover). Almost everything works fine, but there is one problem. When I hover image, and drag mouse on the source place (green color), loops (open - close image starts really fast). How to avoid this behaviour?</p>
  
  <p><a href="https://codepen.io/anon/pen/KxmJdK" rel="nofollow noreferrer">https://codepen.io/anon/pen/KxmJdK</a></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>html, body{
    height: 100%;
    border: 1px solid black;
  }
  
  .container{
    border: solid red 1px;
    background-color: green;
  }
  
  .center{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  img{
    width: 400px;
  }
  
  img:hover{
    transform: scale(1.2) translate(30%, 0);
    transition: all .2s ease-in-out;
    box-shadow: 5px 5px 10px black;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class='center container'&gt;
    &lt;img src='https://images.pexels.com/photos/120049/pexels-photo-120049.jpeg?auto=compress&amp;cs=tinysrgb&amp;dpr=2&amp;h=650&amp;w=940'&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>