JSFiddle - React, Tailwind, and code Playground

HTML

<div id="trans">
    <div id="rotate" class="half rotate">
        <div id="scale" class="two grow">Rotate</div>
    </div>
</div>

CSS

.half {
    transition: all 0.5s ease-in-out;
    -webkit-transition: all 0.5s ease-in-out;
}

.two {
    transition: all 2s ease-in-out 0.5s;
    -webkit-transition: all 2s ease-in-out 0.5s;
}

#trans {
    margin-top: 100px;
    width: 400px;
    height: 200px;
    
}

#rotate, #scale {
    height: 150px;
    width: 100px;
    text-align: center;
    margin: 0 auto;    
}

#scale {
    border: 1px blue solid;
}

.rotate:hover {
    margin-top: 250px;

}