CSS Battles
About
Github
Back
Battle: #105
<div class="top"></div> <div class="lid"> <div class="container"> <div class="eye"></div> <div class="pupil"></div> </div> </div> <div class="lid2"> <div class="container r2"> <div class="eye"></div> <div class="pupil"></div> </div> </div> <style> body { margin: 0; background: #bac7ce; } div { position: absolute; } .container { overflow: hidden; width: 100px; height: 100px; border-radius: 100%; transform: rotate(15deg); } .top { border-top: 91.5px solid #475862; border-left: 91.5px solid transparent; border-right: 91.5px solid transparent; transform: translateX(-50%); left: 50%; } .eye { width: 100px; height: 100px; background: #868a64; border-radius: 100%; box-shadow: 0 -10px 0 10px #5a6042; top: 15px; } .pupil { width: 30px; height: 30px; border-radius: 100%; transform: translate(-50%, -50%); left: 50%; top: 50%; background: #4e2b24; outline: 5px solid; } .lid { left: 30px; top: 130px; width: 100px; height: 100px; background: #000; border-radius: 0 50% 0 50%; border: 10px solid #000; overflow: hidden; transform: rotate(-15deg); } .lid2 { right: 30px; top: 130px; width: 100px; height: 100px; background: #000; border-radius: 0 50% 0 50%; border: 10px solid #000; overflow: hidden; transform: rotate(105deg); } .r2 { transform: rotate(-105deg); } </style>