cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <!-- inspired by https://dribbble.com/shots/2281828-You-are-an-animal -->
<div class="box">
  <div class="base">
    <div class="body"></div> 
    <div class="head">
      <div class="ear-left"></div>
      <div class="ear-right"></div> 
      <div class="hair-sides-left"></div>
      <div class="hair-sides-right"></div>
      <div class="face">   
        <div class="hair-top"></div>
        <div class="eyebrow-left"></div>
        <div class="eye-left"></div>
        <div class="eyebrow-right"></div>
        <div class="eye-right"></div>
        <div class="nose"></div>
        <div class="mouth">
          <div class="teeth"></div>
          <div class="teeth"></div>
        </div> 
      </div>     
    </div>      
  </div>  
</div>
            
          
!
            
              body{
  background: #0f0f0f;
}
.box{
  position: relative;
  margin: auto;
  display: block;
  margin-top: 20px;
  width: 500px;
  height: 500px;
  background: none;
}
.base {
  position: absolute;
  top:0px;
  left: 0%;
  width: 100%;
  height: 100%;
  border-radius:50%;
  background:#f0f5fb;
  box-shadow:0 0 50px 2px #95a5b5;
  overflow:hidden;
}
.body {
  position: absolute;
  bottom:-10px;
  left: 5%;
  width: 90%;
  height: 60%;
  border:6px solid #515A79;
  border-radius:50% 50% 0 0 / 40% 40% 0 0;
  background:#C83B2A;
  background-image:
    -moz-linear-gradient(45deg, #D04733 25%, transparent 25%,transparent 75%, #D04733 75%, #D04733 100%),
    -moz-linear-gradient(45deg, #D04733 25%, transparent 25%,transparent 75%, #D04733 75%, #D04733 100%);
    background-image:
    -webkit-linear-gradient(45deg, #D04733 25%, transparent 25%,transparent 75%, #D04733 75%, #D04733 100%),
    -webkit-linear-gradient(45deg, #D04733 25%, transparent 25%,transparent 75%, #D04733 75%, #D04733 100%);
    -moz-background-size:100px 100px;
    background-size:100px 100px;
    -webkit-background-size:101px 101px;
    background-position:0 0, 50px 50px;
}
.body:before {
  content:"";
  position: absolute;
  bottom:0px;
  left: 20%;
  width: 60%;
  height: 40%;
  border:6px solid #515A79;
  border-width:0 5px;
  margin-left:-2.5px
}
.body:after {
  content:"";
  position: absolute;
  bottom:0px;
  left: 47.5%;
  width: 5%;
  height: 100%;
  border:6px solid #515A79;
  border-width:0 5px;
  margin-left:-3px;
}

.head {
  position:absolute;
  width:55%;
  height:60%;
 background:#897265;
  top:5%;
  left:22.5%;
  border-radius: 50% / 30%;
  border:6px solid #515A79;
  margin-left:-3px;
}
.ear-left {
  background:#515A79;
  z-index:0;
  position:absolute;
  width:30%;
  height:20%;
  left:-5%;
  top:43%;
  border-radius: 0 50% 0 50%;
   background:#E9C7BF;
  -webkit-transform: skew(20deg);
	   -moz-transform: skew(20deg);
	     -o-transform: skew(20deg);
  border:6px solid #515A79;
  margin-left:-6px;
}
.ear-right {
  background:#515A79;
  z-index:0;
  position:absolute;
  width:30%;
  height:20%;
  right:-8%;
  top:42%;
  border-radius: 50% 0 50% 0;
   background:#E9C7BF;
  -webkit-transform: skew(-20deg);
	   -moz-transform: skew(-20deg);
	     -o-transform: skew(-20deg);
  border:6px solid #515A79;
  margin-left:-6px;
}
.face:before {
  content:"";
  z-index:2;
  border-top:6px solid #515A79;  
  background:#E9C7BF;
  position:absolute;
  width:50%;
  height:40%;
  border-radius:50%;
  left:2px;
  top:6px
}
.face:after {
  content:"";
  border-top:6px solid #515A79;  
  background:#E9C7BF;
  position:absolute;
  width:50%;
  height:40%;
  border-radius:50%;
  right:2px;
  top:6px
}
.face {
  background:#E9C7BF;
  position:absolute;
  width:75%;
  height:60%;
  bottom:10%;
  left:12.5%;
  border-radius: 50% / 30%;
  border:6px solid #515A79;
  margin-left:-6px;
}
.hair-top {
  background:#9D877C;
  z-index:0;
  position:absolute;
  width:28%;
  height:25%;
  left:16%;
  top:-10%;
  border-radius: 0 50% 0 50%;
   background:#AA968C;
  -webkit-transform: skew(20deg);
	   -moz-transform: skew(20deg);
	     -o-transform: skew(20deg);
  border:6px solid #515A79;
  margin-left:-6px;
}
.hair-top:before {
  content:"";
  background:#AA968C;
  z-index:0;
  position:absolute;
  width:60%;
  height:135%;
  right:-65%;
  top:-68%;
  border-radius: 0 50% 0 50%;
  -webkit-transform: skew(10deg);
	   -moz-transform: skew(10deg);
	     -o-transform: skew(10deg);
  border:6px solid #515A79;
  margin-left:-6px;
  transform:rotate(15deg);
  z-index:-1;
}
.hair-top:after {
  content:"";
  background:#AA968C;
  z-index:0;
  position:absolute;
  width:55%;
  height:155%;
  right:-115%;
  top:-35%;
  border-radius: 0 50% 0 50%;
  -webkit-transform: skew(25deg);
	   -moz-transform: skew(25deg);
	     -o-transform: skew(25deg);
  border:6px solid #515A79;
  margin-left:-6px;
  transform:rotate(95deg);
  z-index:-1;
}
.hair-sides-left {
  background:#9D877C;
  z-index:0;
  position:absolute;
  width:10%;
  height:10%;
  left:5%;
  top:48%;
  border-radius: 0 50% 0 50%;
   background:#AA968C;
  -webkit-transform: skew(20deg);
	   -moz-transform: skew(20deg);
	     -o-transform: skew(20deg);
  border:6px solid #515A79;
  margin-left:-6px;
}
.hair-sides-left:after {
  content:"";
  background:#9D877C;
  z-index:0;
  position:absolute;
  width:100%;
  height:100%;
  left:0%;
  top:85%;
  border-radius: 0 50% 0 50%;
   background:#AA968C;
  -webkit-transform: skew(20deg);
	   -moz-transform: skew(20deg);
	     -o-transform: skew(20deg);
  border:6px solid #515A79;
  margin-left:-6px;
}
.hair-sides-left:before {
  content:"";
  background:#9D877C;
  z-index:0;
  position:absolute;
  width:100%;
  height:100%;
  left:50%;
  top:-85%;
  border-radius: 0 50% 0 50%;
   background:#AA968C;
  -webkit-transform: skew(20deg);
	   -moz-transform: skew(20deg);
	     -o-transform: skew(20deg);
  border:6px solid #515A79;
  margin-left:-6px;
}

.hair-sides-right {
  background:#9D877C;
  z-index:0;
  position:absolute;
  width:10%;
  height:10%;
  right:2%;
  top:48%;
  border-radius: 50% 0 50% 0;
   background:#AA968C;
  -webkit-transform: skew(-20deg);
	   -moz-transform: skew(-20deg);
	     -o-transform: skew(-20deg);
  border:6px solid #515A79;
  margin-left:-6px;
}
.hair-sides-right:after {
  content:"";
  background:#9D877C;
  z-index:0;
  position:absolute;
  width:100%;
  height:100%;
  right:0%;
  top:85%;
  border-radius: 50% 0 50% 0;
   background:#AA968C;
  -webkit-transform: skew(-20deg);
	   -moz-transform: skew(-20deg);
	     -o-transform: skew(-20deg);
  border:6px solid #515A79;
  margin-left:-6px;
}
.hair-sides-right:before {
  content:"";
  background:#9D877C;
  z-index:0;
  position:absolute;
  width:100%;
  height:100%;
  right:50%;
  top:-85%;
  border-radius: 50% 0 50% 0;
   background:#AA968C;
  -webkit-transform: skew(-20deg);
	   -moz-transform: skew(-20deg);
	     -o-transform: skew(-20deg);
  border:6px solid #515A79;
  margin-left:-6px;
}

.eyebrow-left {
  z-index:3;
  position:absolute;
  width:18%;
  height:5%;
  left:20%;
  top:25%;
  border-radius: 0 50% 0 50%;
   background:#897265;
  -webkit-transform: skew(20deg);
	   -moz-transform: skew(20deg);
	     -o-transform: skew(20deg);
  border:6px solid #515A79;
  margin-left:-6px;
}
.eyebrow-right {
  z-index:3;
  position:absolute;
  width:18%;
  height:5%;
  right:18%;
  top:25%;
  border-radius:50% 0 50% 0;
   background:#897265;
  -webkit-transform: skew(-20deg);
	   -moz-transform: skew(-20deg);
	     -o-transform: skew(-20deg);
  border:6px solid #515A79;
  margin-left:-6px;
}

.eye-left {
  z-index:3;
  position:absolute;
  width:12%;
  height:12%;
  left:30%;
  top:35%;
  border-radius: 50%;
  background:#515A79;
}
.eye-left:before {
  z-index:3;
  content:"";
  position:absolute;
  width:30%;
  height:30%;
  left:25%;
  top:25%;
  border-radius: 50%;
  background:#fff;
}
.eye-left:after {
  z-index:3;
  content:"";
  position:absolute;
  width:95%;
  height:50%;
  left:2.5%;
  bottom:-60%;
  border-radius: 60%;
  border-top: 6px solid #515A79;
}
.eye-right {
  z-index:3;
  position:absolute;
  width:12%;
  height:12%;
  right:30%;
  top:35%;
  border-radius: 50%;
  background:#515A79;
}
.eye-right:before {
  z-index:3;
  content:"";
  position:absolute;
  width:30%;
  height:30%;
  left:25%;
  top:25%;
  border-radius: 50%;
  background:#fff;
}
.eye-right:after {
  z-index:3;
  content:"";
  position:absolute;
  width:95%;
  height:50%;
  left:2.5%;
  bottom:-60%;
  border-radius: 60%;
  border-top: 6px solid #515A79;
}
.mouth {
  position:absolute;
  width:60%;
  height:24%;
  left:20%;
  bottom:25%;
  border-radius: 60%;
  border-bottom: 6px solid #515A79;
}
.mouth:after {
  content:"";
  position:absolute;
  width:35%;
  height:24%;
  left:32.5%;
  bottom:-55%;
  border-radius: 60%;
  border-bottom: 6px solid #E2B6AC;
}
.teeth {
  position:absolute;
  width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-bottom: 15px solid #FFFFFF;
  left:20%;
  bottom:0%;
  transform:rotate(10deg);
}
.teeth:nth-child(2) {  
  left:64%;
  transform:rotate(-10deg);
}
.nose {
  position: absolute;
  background: #515A79;
  width: 12%;
  height: 13%;
  left: 44%;
  top: 46%;
  border-radius: 150px 50px 50px 50px;
  z-index: 4;
  transform: rotate(-140deg);
}



            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console