JSFiddle - React, Tailwind, and code Playground
HTML
<div id="elem">test</div>
CSS
#elem{
font-size:100px;
}
JavaScript
var element = $('#elem');
$(element).delay(2000).css({"transform":"scale(0.5)",float:"left"}).animate({
textIndent: 1
}, {
duration: 1000,
step: function (now, fx) {
scaleVal = now;
fx.start = 0.5;
$(this).css("transform", "scale("+scaleVal+")");
}
});