JSFiddle - React, Tailwind, and code Playground

HTML

<input type="checkbox" value="58123"></input>
<p id="res">600</p>

CSS

#res {
    width: 60px;
    text-align: right;
}

JavaScript

$("input").change(function()  {
    var val = parseInt($("#res").html(), 10),
        res = val + parseInt($(this).val(), 10),
        r = 10,
        timer = setInterval(function() {
            if(res === val) {
                clearInterval(timer);
                return;
            }
            
            $("#res").html(val);
        }, 60);
});