JSFiddle - React, Tailwind, and code Playground

HTML

<div id="click">Hover over me!!</div>
<div id="main"></div>

CSS

#main {
    position: fixed;
    height: 100%;
    width: 100%;
    left:0;
    top:60px;        
    background-color: red;
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;    
    -moz-transition: all 0.5s ease;
}
#click:hover + #main {
    position: fixed;
    width: 100px;
    height: 50px;
    left: 50%;
    top: 50%;
    margin-left:-50px;
    margin-top:-25px;
    background-color: green;   
    
    -webkit-transform:translate(50vw , 50vh) translate(-50%,-50%);
    -ms-transform:translate(50vw , 50vh) translate(-50%,-50%);
    -moz-transform:translate(50vw , 50vh) translate(-50%,-50%);
    transform:translate(50vw , 50vh) translate(-50%,-50%);
    -webkit-transition: all 0.5s ease, -webkit-transform 0.5s 0.5s ease;
    -ms-transition: all 0.5s ease, -ms-transform 0.5s 0.5s ease;
    -moz-transition: all 0.5s ease, -moz-transform 0.5s 0.5s ease;
    transition: all 0.5s ease, transform 0.5s 0.5s ease;    
}
#click {
    width: 100px;
    height: 50px;
    background-color: cornflowerblue;
    color: white;
    font-weight: bold;
    text-align: center;
}