JSFiddle - React, Tailwind, and code Playground
HTML
<div id="div" style="width: 100px; height: 50px; background-color: blue; margin-left: 100px; top: 0; right: 0">
</div>
JavaScript
$(document).ready(function() {
$('#div').animate({
'width': 400,
'height': 400,
'margin-left': -201,
}, {
queue: false,
duration : 1000,
step: function(){
console.log($(this).css('margin-left'));
}
});
});