JSFiddle - React, Tailwind, and code Playground
by Alexander
HTML
<div id="mydiv">Hello world!</div>
CSS
div {
font-size: 32px;
}
JavaScript
console.clear();
setTimeout(function(){
var $el = $("#mydiv");
$el
.animate({height: "hide"}, 500)
.animate({height: "show"}, 500);
setTimeout(function(){
$el.text("Новый текст");
}, 500);
}, 1000);