JSFiddle - React, Tailwind, and code Playground

by teneff

HTML

<div id="screen">
    <div class="scene"></div>
</div>

CSS

#screen {
    width: 300px;
    height: 300px;
    border: 1px solid #ccc;
    margin: 30px auto;
}
#screen div.scene {
    opacity: 0;
    height: 100%;
    border: 2px solid #000;
    background: #ddd;
    transform: scale(1.5);
    -webkit-transform: scale(1.2);
    
    transition: opacity 0.3s, transform 0.3s;
    -webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
}
#screen:hover div.scene {
    opacity: 1;
    -webkit-transform: scale(1);
}