JSFiddle - React, Tailwind, and code Playground

by Zac Morris

HTML

<div id="graph_bg">
    <div id="graph_bar"></div>
    <div id="pop"></div>
</div>

CSS

#graph_bg{
    position:relative;
    width:350px;
    height:300px;
    background-color:yellow;
    overflow:hidden;
}

#graph_bar{
    position: absolute;
    top: 350px;
    left: 50px;
    height:300px;
    width:50px;
    background-color:blue;
}

#pop{
    position: absolute;
    top:50px;
    left: 50px;
    width:50px;
    height:50px;
    background-color:red;
    display: none;
}

JavaScript

$("#graph_bar").animate({"top":"50px"}
                          ,2000
                          ,function(){
                            $("#pop").show();
                           }
                         );