JSFiddle - React, Tailwind, and code Playground
by fparent
HTML
<div id="xxx"></div>
CSS
#xxx {
width:100px; height:100px;
background-color:cyan;
position:relative;
}
JavaScript
$.when(
function() {
$('#xxx').animate({
left:'50px'
})
}
).done(
alert('xxx');
);