JSFiddle - React, Tailwind, and code Playground

HTML

<div class="growme">test</div>

CSS

.growme {
    background-color: #990000;
    height: 0;
    width: 0;
    position: absolute;
    filter: alpha(opacity=0);
    opacity: 0;
}

JavaScript

$('.growme').animate({
    width: '100%',
    height: '100%',
    opacity: 1,
}, 'normal');