JSFiddle - React, Tailwind, and code Playground

HTML

<div id="main">
</div>

<input type="button" id="clicky" value="Click me" />

CSS

#main{
    width: 200px;
    height: 200px;
    background-color: #eee;
    border: 1px solid black;
}

#main:after{
    content: "look";
    height: 50px;
    background-color: white;
    margin-left: 210px;
    border: 1px solid black;
}

JavaScript

$(function(){
    $("#clicky").click(function(){
        $("#main").animate({
            height: "500px"
        }, 2000, function(){
        });
    });
});