JSFiddle - React, Tailwind, and code Playground
by kwh71787
HTML
<div id="hoverbox">
<div id="sbthumb">
<div id="sbfull"></div>
</div>
</div>
CSS
#hoverbox {
height: 700px;
width: 600px;
}
#hoverbox #sbthumb {
background-color:orange;
height: 75px;
width: 75px;
margin-top: 15px;
margin-left: 20px;
background-color: #FFF;
}
#hoverbox #sbthumb #sbfull {
height: 450px;
width: 450px;
position: absolute;
margin-right: auto;
margin-left: auto;
margin-top: 150px;
background-color:orange;
display:none;
/* transition-property: opacity 0;
transition-duration: 2s; */
}
#hoverbox #sbthumb:hover #sbfull {
height: 450px;
width: 450px;
margin-right: auto;
margin-left: auto;
margin-top: 150px;
background-color:orange;
display:block;
/* transition-property: opacity 1;
transition-duration: 2s; */
}