JSFiddle - React, Tailwind, and code Playground
HTML
<div id="a"></div>
CSS
#a{
width:10px;
height:10px;
background-color:#F00;
}
JavaScript
$('#a').animate({
opacity: 1,
width: 400,
percent: 100
},
{
progress: function(a, p, c ) {
console.log(a,p,c)
}
}
);