JSFiddle - React, Tailwind, and code Playground
HTML
<div id="batianhu-wrapper">
<div class="batianhu">
<div class="head-body"></div>
<div class="head-topcover"></div>
<div class="head-toplogo-bg"></div>
<div class="head-toplogo"></div>
<div class="head-toplogo-2"></div>
<div class="head-bottom-left"></div>
<div class="head-bottom-right"></div>
<div class="head-sw-left"></div>
<div class="head-sw-right"></div>
<div class="head-eye"></div>
<div class="head-eye-2"></div>
</div>
</div>
CSS
/* ------------------------------------ */
/* ---------- batianhu-wrapper -------- */
#batianhu-wrapper {
width: 250px;
height: 325px;
overflow: hidden;
margin: 50px auto 20px auto;
}
.batianhu {}
.batianhu .head-body {
-webkit-animation: head-body-1 4s cubic-bezier(0.25, 0.1, 0.25, 1);
animation: head-body-1 4s cubic-bezier(0.25, 0.1, 0.25, 1);
}
/* ------------------------------------ */
/* ------------ head-body ------------- */
.head-body {
position: relative; z-index: 2;
margin: 25px 0 50px 0;
border-top: 150px solid #555;
border-left: 25px solid transparent;
border-right: 25px solid transparent;
width: 200px; height: 0;
}
.head-body:after {
content: ""; position: absolute; top: 0px; left: 0px;
border-style: solid; border-color: #555 transparent transparent transparent; border-width: 150px 100px 0 100px;
width: 0; height: 0;
}
/* ------------------------------------ */
/* ----------- head-topcover ---------- */
.head-topcover {
position: relative; z-index: 5; top: -225px; left: -19px;
border-top: 80px solid #333;
border-left: 60px solid transparent;
border-right: 60px solid transparent;
width: 169px; height: 0;
}
.head-topcover:after {
content: ""; position: absolute; top: 0px; left: 0px;
border-style: solid;
border-color: #333 transparent transparent transparent;
border-width: 15px 85px 0 85px;
width: 0; height: 0;
}
/* ------------------------------------ */
/* --------- head-toplogo-bg ---------- */
.head-toplogo-bg {
position: relative; z-index: 6; top: -267px; left: 67px;
border-top: 110px solid #333;
border-left: 35px solid transparent;
border-right: 35px solid transparent;
width: 46px; height: 0;
}
.head-toplogo-bg:after {
content: ""; position: absolute; top: 0px; left: 0px;
border-style: solid;
border-color: #333 transparent transparent transparent;
border-width: 30px 23px 0 23px;
width: 0; height: 0;
}
/* ------------------------------------ */
/*...