JSFiddle - React, Tailwind, and code Playground
HTML
<button id="push">Bigger</button>
<input id="code" type="text" />
CSS
#code{
width:16px;
}
JavaScript
$(document).ready(function(){
$('#push').click(function(){
//on change animate a width of +16px increase.
$('#code').animate({ width: '+=16'});
});
});