JSFiddle - React, Tailwind, and code Playground

HTML

<div id="countdown">10</div>
<input type="button" value="カウントスタート" id="count_btn">

CSS

#animate_div{
    width:100px;
    height:50px;
    background-color:red;
}

JavaScript

$('#count_btn').click(function(){
    console.time('count')
    $({'count':10}).animate(
        {'count': 0},{
            duration: 10000,
            progress: function(){
                $('#countdown').text(this.count);
            },
            easing: 'linear',
            complete: function(){
                console.timeEnd('count');
            }
        });    
});