JSFiddle - React, Tailwind, and code Playground

by sangramfuture

HTML

<input type='text'> </input>
<button> increase width </button>

CSS

input {
    transition: width 2s;
    width: 50px;
}

JavaScript

$('button').click(function(){
    $('input').css('width', '300px');
});