JSFiddle - React, Tailwind, and code Playground
by dirtyd77
HTML
<div id="div1"></div>
CSS
#div1{ background:red; height:10px; width:10px; border:1px solid black; }
JavaScript
$(function(){
$('#div1').animate({
height: '100px'
}, 'slow', function(){ //this is a callback
$(this).animate({ width: '100px'}, 'slow');
});
});