JSFiddle - React, Tailwind, and code Playground
HTML
<div class="splat">
</div>
CSS
.splat {
width: 400px;
height: 400px;
background: blue;
position: absolute;
top: 100px;
left: 100px;
}
JavaScript
jQuery(document).ready(function($){
$(document).on('click', '.splat', function(e){
$(this).animate({width:"45px"},800);
});
});