JSFiddle - React, Tailwind, and code Playground

by kodjoe mambi

HTML

<script src="https://www.jqueryscript.net/demo/Number-Rolling-Animation-jQuery-numberAnimate/numberAnimate.js"></script>
<div class="container">
        <span class="well">389</span>
        <div class="control">
        
        
        </div>
    </div>

JavaScript

$(function(){
                var $span = $('span');
                $span.numberAnimate();

                $('input[type=text]').keypress(function(e){
                    if(e.which === 13){
                        e.preventDefault();
                        $span.numberAnimate('set', $(this).val());
                    }
                });
            });