JSFiddle - React, Tailwind, and code Playground

by Keith Jeter

HTML

<span class="single">25</span>

JavaScript

$({ Counter: 0 }).animate({
  Counter: $('.single').text()
}, {
  duration: 1000,
  easing: 'swing',
  step: function() {
    $('.single').text(Math.ceil(this.Counter));
  }
});