css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div class="head-1">
  <div class="goggles-1"></div>
  <div class="goggles-2"></div>
  <div class="ear"></div>
  <div class="fix"></div>
  <div class="shine"></div>
</div>
<div class="head-2">
  <div class="fix"></div>
  <div class="shine"></div>
</div>
            
          
!
            
              @import "compass/css3";

@import "compass/css3";

* {
  @include box-sizing(border-box);

  margin: 0;
  padding: 0;
  
  &:before,
  &:after {
    @include box-sizing(content-box);
  }
}

body {
  position: relative;
  background: #303435;
  padding: 50px;
  text-align: center;
  font-size: 0;
}


.head-1 {
  @include border-top-left-radius(90px 84px);
  @include box-shadow((
    inset 13px 0 0 0 #e2e7ed
  ));

  position: relative;
  display: inline-block;
  background: #d8dce5;

  width: 93px;
  height: 110px;

  margin-bottom: 157px;

  &:before {
    @include border-bottom-left-radius(300px 320px);

    content: " ";
    position: absolute;

    top: 210px;
    right: 0;

    width: 37px;

    border-style: solid;
    border-color: #edf1f4 transparent transparent transparent;
    border-width: 57px 0 0 45px;
  }

  &:after {
    @include border-bottom-left-radius(29px 50px);

    content: " ";
    position: absolute;
    background: #edf1f4;

    top: 178px;
    right: 0;

    width: 90px;
    height: 43px;
  }

  .goggles-1 {
    @include border-top-left-radius(112px 10px);
    position: absolute;

    width: 121px;
    height: 45px;

    top: 74px;
    left: -28px;

    border-style: solid;
    border-color: transparent transparent #ced2db transparent;
    border-width: 0 0 45px 31px;

    z-index: 5;

    &:before {
      @include border-top-left-radius(200px 77px);

      content: " ";
      position: absolute;
      background: #d5dce6;

      width: 105px;
      height: 45px;

      top: 3px;
      left: -15px;

      z-index: 10;
    }
  }

  .goggles-2 {
    @include border-bottom-left-radius(57px 30px);
    @include box-shadow(inset 8px -4px 0 0 #b7bec8);

    position: absolute;
    background: #292728;

    width: 105px;
    height: 82px;

    top: 111px;
    left: -12px;

    z-index: 20;

    &:before {
      @include border-bottom-left-radius(49px 23px);

      content: " ";
      position: absolute;

      width: 105px;

      top: 5px;
      left: 2px;

      border-style: solid;
      border-color: #292728 transparent transparent transparent;
      border-width: 58px 0 0 7px;

      z-index: 10;
    }

    &:after {
      @include border-bottom-left-radius(90px 13px);
      @include box-shadow(
        inset 0 -5px 0 0 #c6cedb
      );

      content: " ";
      position: absolute;
      background: #d6dde7;
      border-bottom: solid 4px #050505;

      width: 105px;
      height: 13px;

      top: 0;
      left: 0;

      z-index: 20;
    }
  }

  .ear {
    position: absolute;

    width: 10px;
    height: 62px;

    top: 106px;
    left: -29px;

    border-style: solid;
    border-color: transparent #e2e7ed transparent transparent;
    border-width: 14px 10px 16px 0;

    z-index: 10;

    &:before {
      content: " ";
      position: absolute;

      width: 8px;
      height: 56px;

      top: -13px;
      left: 10px;

      border-style: solid;
      border-color: transparent transparent transparent #e2e7ed;
      border-width: 5px 0 0 8px;
    }

    &:after {
      @include border-top-left-radius(30px);
      @include box-shadow(
        1px 0 0 0 #c6cedb,
        2px 0 0 0 #c6cedb,
        3px 0 0 0 #c6cedb,
        4px 0 0 0 #c6cedb,
        5px 0 0 0 #c6cedb,
        6px 0 0 0 #c6cedb,
        7px 0 0 0 #c6cedb,
        8px 0 0 0 #c6cedb
      );

      content: " ";
      position: absolute;

      width: 0;
      height: 32px;

      top: -5px;
      left: 0px;

      border-style: solid;
      border-color: transparent #d5dce6 transparent transparent;
      border-width: 5px 10px 16px 0;
    }
  }

  .fix {
    position: absolute;

    top: 190px;
    right: 0;

    width: 60px;
    height: 71px;

    border-style: solid;
    border-color: #d2d7dd transparent transparent transparent;
    border-width: 71px 0 0 27px;

    z-index: 10;

    &:before {
      @include border-radius(10px 0 0 10px);

      content: " ";
      position: absolute;
      background: #000000;

      top: -34px;
      right: 0;

      width: 25px;
      height: 7px;

      z-index: 10;
    }

    &:after {
      content: " ";
      position: absolute;
      background: #c6cedb;

      width: 33px;
      height: 6px;

      right: 0;
      bottom: -6px;
    }
  }

  .shine {
    @include opacity(.21);
    @include border-radius(30% 100%);
    @include box-shadow(0 0 20px 10px white);

    content: " ";
    position: absolute;
    background: white;

    top: 140px;
    left: 20px;

    width: 3px;
    height: 23px;

    z-index: 40;
  }
}

.head-2 {
  @include border-top-right-radius(90px 84px);
  @include border-bottom-right-radius(60px 90px);
  @include box-shadow((
    inset -6px 3px 0 0 #f7bb37,
    inset -5px -43px 0 0 #f7bb37,
    inset -5px -48px 0 0 #050505
  ));

  position: relative;
  display: inline-block;
  background: #292728;

  width: 93px;
  height: 267px;

  margin-right: 17px;

  &:after {
    @include border-top-right-radius(11px 9px);
    @include border-bottom-right-radius(15px 116px);

    content: " ";
    position: absolute;
    background: #e5a829;

    top: 84px;
    right: -17px;

    width: 17px;
    height: 125px;

    border-right: solid 10px #f5b937;
    z-index: -1;
  }

  .fix {
    @include border-bottom-right-radius(12px 25px);

    position: absolute;

    width: 30px;
    height: 43px;

    left: 0;
    bottom: 0;

    border-style: solid;
    border-color: #e5a927 transparent transparent transparent;
    border-width: 43px 7px 0 0;
  }

  .shine {
    @include opacity(.21);
    @include border-radius(30% 100%);
    @include box-shadow(0 0 20px 10px white);

    content: " ";
    position: absolute;
    background: white;

    top: 40px;
    right: 45px;

    width: 10px;
    height: 3px;

    z-index: 40;
  }
}

            
          
!
            
              /* 
Random Access Memories by Daft Punk
Made by Kevin Jannis (@kevinjannis)
View more at www.janniskev.in 
*/
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console