JSFiddle - React, Tailwind, and code Playground
HTML
<div class="content">Content before</div>
<div class="box">First</div>
<div class="box">Second</div>
<div class="box">Third</div>
<div class="box">Fourth</div>
<div class="footer">
neki text
</div>
<div class="content">Content after</div>
CSS
body {-webkit-transform:translateZ(0); /* Fix webkit flicker*/}
.box {
position:relative;
z-index:1;
display: block;
float: left;
width: 80px;
height: 50px;
line-height: 50px;
text-align: center;
background-color: #f4faff;
border: 1px solid #e0eeff;
margin: 10px;
-webkit-transition:-webkit-transform 0.5s ease-in-out;
-moz-transition:-moz-transform 0.5s ease-in-out;
transition:transform 0.5s ease-in-out;
}
.box:hover {
-webkit-transform:scale(2);
-moz-transform:scale(2);
transform:scale(2);
z-index:2;
}
.content {
text-align: center;
background-color: #f5f5f5;
clear: both;
}
.footer {
width:100%;
height:50px;
}