JSFiddle - React, Tailwind, and code Playground

by supertrue

HTML

<h1>Increment number</h1>
<span id="el">Hello</span>

JavaScript

// Animate the element's value from 0% to 110%:
jQuery({someValue: 0}).animate({someValue: 110}, {
	duration: 5000,
	easing:'swing', //'swing', // can be anything
	step: function() { // called on every step
		// Update the element's text with rounded-up value:
		$('#el').text(Math.ceil(this.someValue) + "%");
	}
});