JSFiddle - React, Tailwind, and code Playground
HTML
<div></div>
<p>If editing, you'll need to click 'Resend' (or hit return) before the animation finishes.</p>
CSS
div {
width: 30px;
height: 30px;
background-color: red;
}
p {
font: 10px 'Verdana';
}
JavaScript
$("div").click(function(){
$(this).animate(
{width: '300px'},
5000);
setTimeout(location.reload, 1500);
});