JSFiddle - React, Tailwind, and code Playground
HTML
<div id="myID" style="width:50px; background-color:red;">
Hello
</div>
JavaScript
$(document).ready(function(){
$('#myID').animate({'width':'50%'}, 400);
});
<div id="myID" style="width:50px; background-color:red;">
Hello
</div>
$(document).ready(function(){
$('#myID').animate({'width':'50%'}, 400);
});