JSFiddle - React, Tailwind, and code Playground
HTML
<div>
<div id="inner">asdfsdf</div>
</div>
CSS
#inner{
border : 1px solid black
}
JavaScript
$({
rotation: 0,
scale: 1
}).animate({
rotation: 360,
scale: 1
}, {
duration: 500,
step: function (now, fx) {
$('#inner').css('transform', 'scale(' + now + ') rotate(' + now + 'deg)');
}
});