<div class="container">
<div class="box">
<div class="rectangle" id="1">
<div class="dotHolder">
</div>
<div class="dotHolder">
<div class="dot"></div>
</div>
<div class="dotHolder">
</div>
<div class="divider"></div>
<div class="dotHolder">
</div>
<div class="dotHolder">
<div class="dot"></div>
</div>
<div class="dotHolder">
</div>
</div>
<div class="rectangle" id="2">
<div class="dotHolder left">
<div class="dot"></div>
</div>
<div class="dotHolder">
</div>
<div class="dotHolder right">
<div class="dot"></div>
</div>
<div class="divider"></div>
<div class="dotHolder left">
<div class="dot"></div>
</div>
<div class="dotHolder">
</div>
<div class="dotHolder right">
<div class="dot"></div>
</div>
</div>
<div class="rectangle" id="3">
<div class="dotHolder left">
<div class="dot"></div>
</div>
<div class="dotHolder">
<div class="dot"></div>
</div>
<div class="dotHolder right">
<div class="dot"></div>
</div>
<div class="divider"></div>
<div class="dotHolder left">
<div class="dot"></div>
</div>
<div class="dotHolder">
<div class="dot"></div>
</div>
<div class="dotHolder right">
<div class="dot"></div>
</div>
</div>
<div class="rectangle" id="4">
<div class="dotHolder bottom">
<div class="dot"></div>
<div class="dot"></div>
</div>
<div class="dotHolder">
</div>
<div class="dotHolder top">
<div class="dot"></div>
<div class="dot"></div>
</div>
<div class="divider"></div>
<div class="dotHolder bottom">
<div class="dot"></div>
<div class="dot"></div>
</div>
<div class="dotHolder">
</div>
<div class="dotHolder top">
<div class="dot"></div>
<div class="dot"></div>
</div>
</div>
<div class="rectangle" id="5">
<div class="dotHolder">
<div class="dot"></div>
<div class="dot"></div>
</div>
<div class="dotHolder">
<div class="dot"></div>
</div>
<div class="dotHolder">
<div class="dot"></div>
<div class="dot"></div>
</div>
<div class="divider"></div>
<div class="dotHolder">
<div class="dot"></div>
<div class="dot"></div>
</div>
<div class="dotHolder">
<div class="dot"></div>
</div>
<div class="dotHolder">
<div class="dot"></div>
<div class="dot"></div>
</div>
</div>
<div class="rectangle" id="6">
<div class="dotHolder">
<div class="dot"></div>
<div class="dot"></div>
</div>
<div class="dotHolder">
<div class="dot"></div>
<div class="dot"></div>
</div>
<div class="dotHolder">
<div class="dot"></div>
<div class="dot"></div>
</div>
<div class="divider"></div>
<div class="dotHolder">
<div class="dot"></div>
<div class="dot"></div>
</div>
<div class="dotHolder">
<div class="dot"></div>
<div class="dot"></div>
</div>
<div class="dotHolder">
<div class="dot"></div>
<div class="dot"></div>
</div>
</div>
</div>
</div>
body {
background-color: #e0e5ec;
}
.container {
height: 600px;
display: flex;
align-items: center;
justify-content: center;
}
.box {
display: flex;
}
.rectangle {
height: 320px;
min-width: 180px;
border-radius: 20px;
display: flex;
flex-direction: column;
justify-content: space-around;
margin: 15px;
background: #EOE5EC;
box-shadow: 9px 9px 16px rgba(163, 177, 198, 0.6),
-9px -9px 16px rgba(255, 255, 255, 0.5);
padding: 10px 0px;
}
.dot {
height: 30px;
width: 30px;
margin: 10px;
background: #EOE5EC;
box-shadow: 5px 5px 10px rgba(163, 177, 198, 0.6),
-5px -5px 10px rgba(255, 255, 255, 0.5);
border-radius: 50%;
}
.animate {
animation: appear 4s alternate infinite;
}
.dotHolder {
display: flex;
justify-content: space-around;
width: 80%;
margin-left: auto;
margin-right: auto;
min-height: 40px;
}
.left {
justify-content: flex-start;
}
.right {
justify-content: flex-end;
}
.top {
align-items: flex-end;
}
.bottom {
align-items: flex-start;
}
.divider {
height: 10px;
width: 100px;
margin: 20px;
margin-left: auto;
margin-right: auto;
background: #EOE5EC;
box-shadow: 4px 4px 10px rgba(163, 177, 198, 0.6),
-4px -4px 10px rgba(255, 255, 255, 0.5);
}
@keyframes appear {
0% {
box-shadow: 0px 0px 0px #a3b1c6, -0px -0px 0px #ffffff;
}
100% {
box-shadow: 4px 4px 10px #a3b1c6, -4px -4px 10px #ffffff;
}
}
//Inspiration from: https://uxplanet.org/neumorphism-in-user-interface-tutorial-c353698ac5c0
This Pen doesn't use any external JavaScript resources.