JSFiddle - React, Tailwind, and code Playground
by alpacalips
HTML
<div id="element">El</div>
CSS
#element {
width: 100px;
height: 100px;
background: red;
}
JavaScript
$("#element").animate({
"width": "500px",
"height": "130px"
}, {
"duration": 850,
"step": function (now, fx) {
var currentWidth = this.width();
if(currentWidth >= 295) this.stop(true, true);
}
}).slideUp(700);