JSFiddle - React, Tailwind, and code Playground

HTML

<div id="example">a</div>

CSS

#example {
    background:red;
    width:150px; /*starting width*/
}

JavaScript

$('#example').mouseover(function() {
$("#example").stop().animate({width: 250}, 200 );   //Bigger
}).mouseout(function(){
$("#example").stop().animate({width: 200}, 200 );   //Smaller
});