JSFiddle - React, Tailwind, and code Playground

by igos

HTML

<span id="counter">A</span>
<a onclick="$('#counter').stop()">Stop</a>

JavaScript

$('#counter').animate({countNum: 10000}, {
  duration: 60*1000,
  easing:'linear',
  step: function() {
    $('#counter').text(Math.floor(this.countNum));
  },
  complete: function() {
    $('#counter').text(this.countNum);
    alert('finished');
  }
});