JSFiddle - React, Tailwind, and code Playground

by Ranganadh Paramkusam

HTML

<!DOCTYPE html>
<html>
<body>

<meter value="2" min="0" max="1000"></meter>

</body>
</html>

JavaScript

$(document).ready(function(){
    i=0;
    var inter = setInterval(function(){
        if(i<=1000){
            $("meter").val(i);
            i++;
        } else {
            console.log("1");
            clearInterval(inter);
        }
    },1);
});