title: Alternate animation with @keyframe
body: <p>I am having a problem with keyframes in css, here is the code I am using:</p>
  <p>The thing is, it runs the animation correctly when I hover the item but when I remove the cursor from it, the circle returns to it original position without any animation, and i want it to run the animation backwards as well, how can I do 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>@keyframes circle-animation {
      0% {
          clip-path: circle(17%);
      }
      100% {
          clip-path: circle(250px at 80% -20%);
      }
  }
  
  body {
     width: 100%;
     height: 100%;
     justify-content: center;
     align-items: center;
  }
  
  .grid-item {
      width: 300px;
      height: 400px;
      border-radius: 20px;
      background: red;
      overflow: hidden;
      display: flex;
      justify-content: center;
      align-items: center;
  }
  
  
  #circle {
      width: 100%;
      height: 100%;
      background: lime;
      clip-path: circle(17%);
      overflow: hidden;
  }
  
  .grid-item:hover #circle {
      animation: circle-animation 1.5s forwards;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;body&gt;
  &lt;div class="grid-item"&gt;
      &lt;div id="circle"&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>Ignore the colors and excuse me if there's any gramaticall mistake, english is not my native language.</p>