JSFiddle - React, Tailwind, and code Playground

HTML

<button>Bigger</button>
<input id="code" type="text" />

CSS

#code{
    width:16px;
}

JavaScript

$(document).ready(function(){
    $('#code').on('click', function(){
        //on change animate a width of +16px increase.
        $(this).animate({width: '+=16'});
    });
});