title: Animate custom cursor when hovering on a link
body: <p>I have a custom image cursor for my <code>body</code> and links.</p>
  
  <p>What I would like to achieve is hovering the link the cursor should transition into the link's cursor image, rather than it just changing straight away.</p>
  
  <p>Currently, I have this code:</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 {
    height:100%;
  }
  body {
    cursor:url(https://i.imgur.com/odlAwsz.png), auto  !important;
    width:100%;
    height:100%;
    background:red;
  }
  
  a {
    cursor:url(https://i.imgur.com/yxX4Snm.png), auto !important;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;a href="#"&gt;I'm a link&lt;/a&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>As you can see above there is no transition between the two circle icons when hovering <code>&lt;a&gt;</code>.</p>
  
  <p>I tried achieving this with CSS, but with no success. <strong>How can this be achieved using JavaScript?</strong> </p>