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

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.

            
              .figure
 .hair
 .head
  .s1
  .s6
  .s2
  .l1
  .l2
  .l3
  .l4
  .s3
  .s5
  span.scare
  .brow-left
  .eye-left
  span.pupil-left
  .brow-right
  .eye-right
  span.pupil-right  
  .nose
  .mouth
 .clip-l
 span.line
 .clip-r 
 span.line
 .neck
   .s1
 span.screw
 span.screw
 
.info
  h1 Frankenstein
  p was the name of the doctor, not the monster, wasn't it? Anyway, here is my clip-path based CSS image of ... the monster.
  p.explain requires chrome or latest FF (you need to enable clip-path), or you use the nightly build.
  
            
          
!
            
              html,body {
  height: 100%;
  overflow: hidden;
}

body {
  background: #000;
}

.figure {
  position: absolute;
  left: 50%;
  width: 350px;
  height: 450px;
  transform: translate(-50%,-50%);
  top: 50%;
  
  div {
    width: 350px;
    height: 450px;
    position: absolute;
  }

}

.hair {
  background: #dedee0;
  clip-path: polygon(18% 22%, 31% 10%, 48% 8%, 61% 10%, 72% 14%, 76% 20%, 79% 16%, 73% 6%, 59% 1%, 38% 0%, 23% 7%, 20% 13%);
}

.clip-l {
    background: #fcfcfc;
    clip-path: polygon(26% 13%, 21% 6%, 26% 4%, 31% 12%, 26% 13%);
  }

.clip-l + span.line {
  position: absolute;
  width: 5px;
  height: 30px;
  border-right: 5px solid #bdbec0;
  left: 87px;
  top: 30px;
  border-radius: 30%;
  transform: rotate(-30deg);
}

  
  
  .clip-r {
    background: #fcfcfc;
    clip-path: polygon(66% 3%, 71% 4%, 72% 10%, 72% 10%, 66% 9%, 66% 9%);
  }

.clip-r + span.line {
  position: absolute;
  width: 5px;
  height: 25px;
  border-right: 8px solid #bdbec0;
  left: 230px;
  top: 18px;
  border-radius: 30%;
  transform: rotate(5deg);
}

.head {
  background: #dedee0;
  clip-path: polygon(35% 69%, 60% 69%, 79% 58%, 88% 57%, 90% 49%, 91% 44%, 87% 39%, 80% 42%, 81% 35%, 78% 23%, 82% 20%, 66% 6%, 49% 4%, 28% 7%, 18% 16%, 14% 24%, 15% 30%, 20% 38%, 16% 44%, 9% 40%, 6% 48%, 11% 58%, 20% 58%);
  
  .s1 {
     background: #7e807f;
    clip-path: polygon(35% 69%, 20% 58%, 11% 58%, 6% 48%, 9% 40%, 16% 44%, 10% 40%, 16% 44%, 20% 38%, 18% 31%, 15% 31%, 14% 23%, 19% 14%, 21% 10%, 26% 14%, 39% 11%, 29% 16%, 23% 21%, 18% 26%, 21% 26%, 26% 27%, 20% 32%, 22% 33%, 28% 29%, 36% 27%, 46% 27%, 61% 26%, 74% 29%, 78% 33%, 79% 40%, 83% 44%, 87% 42%, 85% 50%, 82% 56%, 62% 69%, 50% 70%);
  }
  
  .s3 {
     background: #464646;
    clip-path: polygon(78% 38%, 76% 42%, 77% 50%, 76% 62%, 82% 56%, 82% 44%);
  }
  
  .s4 {
    background: #030708;
    clip-path: polygon(53% 33%, 59% 32%, 71% 31%, 69% 29%, 56% 29%, 49% 29%, 38% 28%, 32% 30%, 23% 34%, 27% 36%, 33% 32%, 35% 32%, 43% 32%);
  }
  
  .s2 {
    background: #3d3d3d;
    clip-path: polygon(21% 38%, 30% 32%, 43% 32%, 48% 30%, 53% 31%, 58% 32%, 66% 31%, 72% 35%, 73% 37%, 79% 36%, 77% 31%, 71% 28%, 60% 26%, 48% 27%, 38% 27%, 28% 28%, 20% 34%);
  }
  
  .s6 {
    background: #7e807f;
    clip-path: polygon(78% 35%, 82% 35%, 78% 22%, 79% 59%, 79% 19%, 75% 15%, 71% 12%, 68% 13%, 75% 19%, 74% 23%, 73% 24%, 76% 28%);
  }
  
  .l1 {
    background: #dedee0;
    clip-path: polygon(52% 66%, 59% 65%, 64% 66%, 74% 59%, 69% 56%, 66% 50%, 64% 47%, 60% 46%, 57% 52%, 65% 54%, 57% 57%, 64% 60%);
  }
  
  .l2 {
    background: #dedee0;
    clip-path: polygon(50% 40%, 54% 40%, 60% 42%, 57% 39%, 54% 34%, 49% 32%, 42% 40%, 39% 42%, 39% 45%, 42% 41%, 46% 40%);
  }
  
  .l3 {
    background: #dedee0;
    clip-path: polygon(35% 67%, 40% 67%, 44% 67%, 38% 64%);
  }
  
  .l4 {
    background: #dedee0;
    clip-path: polygon(38% 53%, 41% 51%, 40% 46%);
  }
  .s5 {
    background: #464646;
clip-path: polygon(50% 39%, 54% 38%, 58% 40%, 59% 45%, 54% 45%, 50% 45%, 44% 44%, 40% 44%, 43% 39%);
  }
  
  .scare {
    position: absolute;
    width: 5px;
    height: 45px;
    border-right: 3px solid #000;
    border-radius: 50%;
    left: 120px;
    top: 65px;
    
    &:after {
      content: "";
      position: absolute;
      width: 10px;
      height: 3px;
      background: #000;
      border-radius: 30%;
      top: 10px;
      transform: rotate(-15deg);
    }
    
    &:before {
      content: "";
      position: absolute;
      width: 6px;
      height: 3px;
      background: #000;
      border-radius: 30%;
      top: 4px;
      transform: rotate(-15deg);
    }
  }
  
  .brow-left {
    background: #060807;
    clip-path: polygon(42% 31%, 49% 28%, 36% 26%, 26% 32%, 27% 34%, 32% 30%, 37% 30%, 42% 31%);
  }
  
  .eye-left {
    background: #060807;
    clip-path: polygon(28% 36%, 38% 32%, 43% 32%, 42% 34%, 36% 34%, 32% 37%);
  }
  
  .brow-right {
    background: #060807;
    clip-path: polygon(56% 31%, 63% 29%, 71% 29%, 60% 26%, 51% 28%);
  }
  
  .eye-right {
    background: #060807;
    clip-path: polygon(59% 32%, 71% 33%, 71% 36%, 66% 35%, 64% 34%, 57% 33%);
  }
  
  .pupil-left {
      position: absolute;
      border-radius: 50%;
      background: #060807;
      height: 14px;
      width: 14px;
      left: 123px;
      top: 146px;
    
      &:after {
        transform: rotate(-10deg);
        content: "";
        position: absolute;
        border-bottom: 3px solid #000;
        border-radius: 50%;
        width: 30px;
        height: 5px;
        left: -12px;
        top: 13px;
      }
    
      &:before {
        content: "";
        position: absolute;
        border-bottom: 3px solid #000;
        border-radius: 50%;
        width: 40px;
        height: 5px;
        left: 2px;
        top: 15px;
        transform: rotate(-50deg);
      }
    
    }
  
    .pupil-right {
      position: absolute;
      border-radius: 50%;
      background: #060807;
      height: 14px;
      width: 14px;
      left: 210px;
      top: 146px;
    
      &:after {
        content: "";
        position: absolute;
        border-bottom: 3px solid #000;
        border-radius: 50%;
        width: 40px;
        height: 5px;
        left: -5px;
        top: 9px;
      }
    
      &:before {
        content: "";
        position: absolute;
        border-bottom: 3px solid #000;
        border-radius: 50%;
        width: 40px;
        height: 5px;
        left: -98px;
        top: 19px;
        transform: rotate(-20deg);
      }
    
    }
  
  .nose {
    background: #060807;
    clip-path: polygon(45% 41%, 49% 42%, 54% 40%, 56% 42%, 57% 43%, 56% 45%, 50% 45%, 43% 44%);
  }
  
  .mouth {
    background: #060807;
    clip-path: polygon(39% 57%, 44% 53%, 56% 52%, 65% 54%, 63% 55%, 54% 54%, 43% 55%);
  }
}

.neck {
    background: #dedee0;
    clip-path: polygon(22% 83%, 47% 88%, 70% 85%, 80% 75%, 77% 59%, 60% 69%, 47% 69%, 35% 69%, 20% 58%, 21% 76%);
  
  .s1 {
    background: #030708;
    clip-path: polygon(22% 58%, 23% 66%, 30% 73%, 49% 81%, 56% 80%, 63% 84%, 69% 83%, 79% 75%, 76% 59%, 60% 69%, 47% 69%, 35% 69%);
  }
  }

.screw {
  position: absolute; 
  width: 20px;
  height: 15px;
  background: #fff;
  background-image: linear-gradient(#717276 0%, #717276 10%, #fff 40%, #717276 90%);
  left: 56px;
  bottom: 100px;
  transform: rotate(-5deg);
}

.screw + .screw {
  left: 275px;
  bottom: 125px;
}

.info {
  position: absolute;
  left: 10px;
  top: 10px;
  color: #b12025;
  width: 320px;
  z-index: -1;
  
  h1 {
    font-family: 'Nosifer', cursive;
  }
  
  p {
    font-family: sans-serif;
    color: #666;
    line-height: 1.3;
    
    &.explain {
      font-size: .75rem;
    }
  }
}
            
          
!
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