JSFiddle - React, Tailwind, and code Playground
JavaScript
var progress=0;
interval = setInterval( function() {
progress = Math.min( progress + Math.random() *0.1, 1 );
var tetprogress=progress*100;
console.log("The progress--->"+tetprogress)
$(".progress-inner").css("width",tetprogress+"%");
if( tetprogress === 100 )
{
clearInterval( interval );
}
}, 200 );