JSFiddle - React, Tailwind, and code Playground
by memed
HTML
<div id="main">
<div class="stalk"></div>
<div class="mnstr_body">
<div class="mnstr_head"></div>
<div class="eyes">
<div class="left_eye"></div>
<div class="left_blang"></div>
<div class="right_eye"></div>
<div class="right_blang"></div>
</div>
<div class="nose"></div>
<div class="mouth_bl">
<div class="mouth"></div>
<div class="tooth_1"></div>
<div class="tooth_2"></div>
<div class="tooth_3"></div>
<div class="tooth_4"></div>
<div class="tooth_5"></div>
</div>
<div class="acne"></div>
<div class="mnstr_foots"></div>
</div>
</div>
CSS
#main {
width: 400px;
margin: 20px auto 0;
position: relative;
}
.mnstr_body {
height: 230px;
width: 327px;
background: #f68121;
border-radius: 45% 45% 35% 35%;
border: 5px solid #000;
box-shadow: 5px 0 0 #fb9d1f inset, -5px 0 0 #fb9d1f inset;
position: relative;
}
.mnstr_head, .mnstr_head:after, .mnstr_head:before {
background: #f68121;
width: 105px;
height: 72px;
border-top: 8px solid #000;
border-radius: 50%;
}
.mnstr_head {
position: absolute;
left: 50px;
top: -5px;
}
.mnstr_head:after {
content:'';
display: block;
margin: -6px 0 0 127px;
}
.mnstr_head:before {
content:'';
float: left;
margin: -21px 0 0 65px;
}
.mnstr_foots, .mnstr_foots:after, .mnstr_foots:before {
background: #f68121;
width: 105px;
height: 72px;
border-bottom: 8px solid #000;
border-radius: 50%;
}
.mnstr_foots {
position: absolute;
left: 53px;
bottom: -14px;
}
.mnstr_foots:after {
content:'';
display: block;
margin: -6px 0 0 127px;
}
.mnstr_foots:before {
content:'';
float: left;
margin: 10px 0 0 57px;
}
.eyes {
width: 219px;
height: 70px;
margin: 55px 0 0 56px;
position: relative;
z-index: 1;
}
.left_eye {
width: 90px;
height: 40px;
background: #000;
border-radius: 31px 15px 112px 50px;
-webkit-transform: rotate(15deg);
transform: rotate(15deg);
position: relative;
z-index: 3;
float: left;
}
.left_eye:before {
content:'';
width: 70px;
height: 32px;
background: #8dc53c;
border-radius: 31px 15px 112px 50px;
position: absolute;
top: 3px;
left: 8px;
}
.left_eye:after {
content:'';
width: 60px;
height: 24px;
background: #d8df20;
border-radius: 31px 15px 112px 50px;
position: absolute;
top: 7px;
left: 14px;
}
.left_blang {
position: absolute;
z-index: 2;
border-bottom: 5px solid #fa9c1e;
border-radius: 0 0 50%...