JSFiddle - React, Tailwind, and code Playground
by Brodingo
HTML
<div class="bars menu">
<div class="bar"><div></div></div>
<div class="bar"><div></div></div>
<div class="bar"><div></div></div>
</div>
<div class="bars">
<div class="bar"><div></div></div>
<div class="bar"><div></div></div>
<div class="bar"><div></div></div>
</div>
<div class="bars large">
<div class="bar"><div></div></div>
<div class="bar"><div></div></div>
<div class="bar"><div></div></div>
</div>
CSS
body {
background-color: steelblue;
}
.bars {
width: 100px;
height: 100px;
margin-bottom: 50px;
cursor: pointer;
-webkit-filter: drop-shadow(0 .2em .2em rgba(0,0,0,.2));
}
.bar {
position: relative;
height: 20%;
margin: 0 0 20%;
}
.bar div {
width: 80%;
height: 100%;
margin: 0 auto;
background-color: #fff;
}
.bar:before, .bar:after {
content: ' ';
position: absolute;
top: 0;
left: 0;
width: 20%;
height: 100%;
background-color: #fff;
border-radius: 100%;
}
.bar:after {
right: 0;
left: auto;
}
.menu {
position: absolute;
top: 20px;
right: 20px;
width: 20px;
height: 20px;
}
.large {
width: 300px;
height: 300px;
-webkit-animation: pulse 5s infinite;
}
@-webkit-keyframes pulse {
50% {
width: 400px;
height: 400px;
}
}