Esse efeito usa box-shadow
sim, mas tb usa transform:scale(1.2);
Veja nesse Snipper um exemplo:
* {
box-sizing: border-box;
}
html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
body {
background-color: #3b414d;
overflow: hidden;
}
.container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.container div {
display: inline-block;
width: 100px;
height: 100px;
background-color: blueviolet;
margin: 0;
padding: 0;
}
.container div:nth-child(2) {
background-color: pink;
transform: scale(1.2);
box-shadow: 0 0 20px rgba(0,0,0,.5)
}
<div class="container">
<div></div>
<div></div>
<div></div>
</div>
Se quiser o efeito apenas quando fizer o :hover
basta substituir o .container div:nth-child(2){}
por .container div:hover{}
* {
box-sizing: border-box;
}
html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
body {
background-color: #3b414d;
overflow: hidden;
}
.container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.container div {
display: inline-block;
width: 100px;
height: 100px;
background-color: blueviolet;
margin: 0;
padding: 0;
transition: all .25s ease-in-out;
position: relative;
z-index: 0;
}
.container div:hover {
background-color: pink;
transform: scale(1.2);
box-shadow: 0 0 20px rgba(0,0,0,.5);
position: relative;
z-index: 2;
cursor: pointer;
}
<div class="container">
<div></div>
<div></div>
<div></div>
</div>