Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                
<div id="van">
  <div class="left">
    <div class="ear-1"></div>
    <div class="ear-2"></div>
    <div class="ear-3"></div>
    <div class="ear-4"></div>
    <div class="ear-5"></div>
    <div class="antenna"></div>
    <div class="roof"></div>
    <div class="window-border"></div>
    <div class="window"></div>
    <div class="window-shade"></div>
    <div class="window-border-top"></div>
    <div class="window-border-bottom"></div>
    <div class="hood"></div>
    <div class="freckles"></div>
    <div class="light"></div>
    <div class="nose"></div>
    <div class="tongue"></div>
    <div class="tongue-inner"></div>
    <div class="front"></div>
    <div class="tire"></div>
    <div class="bumper"></div>
  </div>
  <div class="right">
    <div class="ear-1"></div>
    <div class="ear-2"></div>
    <div class="ear-3"></div>
    <div class="ear-4"></div>
    <div class="ear-5"></div>
    <div class="antenna"></div>
    <div class="roof"></div>
    <div class="window-border"></div>
    <div class="window"></div>
    <div class="window-shade"></div>
    <div class="window-border-top"></div>
    <div class="window-border-bottom"></div>
    <div class="hood"></div>
    <div class="freckles"></div>
    <div class="light"></div>
    <div class="nose"></div>
    <div class="tongue"></div>
    <div class="tongue-inner"></div>
    <div class="front"></div>
    <div class="tire"></div>
    <div class="bumper"></div>
  </div>
</div>
              
            
!

CSS

              
                @import "compass/css3";

@import "compass/css3";

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

  padding: 0;
  margin: 0;
}

body {
  background: #e9e5e2;
  padding: 40px 0;
  text-align: center;
}

#van {
  overflow: hidden;
  position: relative;
  display: inline-block;
  width: 242px;
  height: 205px;
  
  &:after {
    content: " ";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    border-bottom: solid 2px #d8d3cf;
  }

  .left,
  .right {
    top: 0;
    bottom: 0;
    width: 50%;
    overflow: hidden;

    &,
    > * {
      position: absolute;
    }
  }

  .left {
    left: 0;

    .ear-1 {
      top: 11px;
      left: 29px;

      width: 37px;
      height: 21px;

      border-style: solid;
      border-color: transparent transparent #957552 transparent;
      border-width: 0 0 21px 37px;
    }

    .ear-2 {
      top: 36px;
      left: 0px;

      width: 45px;
      height: 69px;

      border-style: solid;
      border-color: transparent transparent #957552 transparent;
      border-width: 0 0 69px 26px;
    }

    .ear-3 {
      @include border-radius(50%);

      top: 10px;
      left: 62px;

      width: 14px;
      height: 14px;

      background: #957552;
    }

    .ear-4 {
      @include border-radius(50% 0 0 50%);

      top: 31px;
      left: 26px;

      width: 20px;
      height: 10px;

      background: #957552;
    }

    .ear-5 {
      @include border-radius(50%);

      top: 100px;
      left: 0;

      width: 14px;
      height: 14px;

      background: #957552;
    }

    .antenna {
      @include border-radius(10px 0 0 0);

      top: 0;
      right: 0;

      width: 10px;
      height: 31px;

      background: #957552;
    }

    .roof {
      @include border-top-left-radius(90px 30px);

      top: 13px;
      left: 43px;

      width: 78px;
      height: 23px;

      background: #c69c6d;
    }

    .window-border {
      top: 34px;
      left: 28px;

      width: 93px;
      height: 49px;

      border-style: solid;
      border-color: transparent transparent #c69c6d transparent;
      border-width: 0 0 49px 15px;
    }

    .window {
      top: 44px;
      left: 35px;

      width: 86px;
      height: 39px;

      border-style: solid;
      border-color: transparent transparent #f6efe8 transparent;
      border-width: 0 0 39px 12px;
    }

    .window-shade {
      top: 44px;
      left: 44px;

      width: 77px;
      height: 9px;

      border-style: solid;
      border-color: transparent transparent #e4cfbb transparent;
      border-width: 0 0 9px 3px;
    }

    .window-border-top {
      @include border-bottom-left-radius(40px 80px);
      top: 34px;
      left: 113px;

      width: 8px;
      height: 15px;

      background: #c69c6d;
    }

    .window-border-bottom {
      @include border-top-left-radius(30px 80px);
      top: 72px;
      left: 105px;

      width: 16px;
      height: 45px;

      background: #957552;
    }

    .hood {
      top: 83px;
      left: 11px;

      width: 110px;
      height: 19px;

      border-style: solid;
      border-color: transparent transparent #d1b08a transparent;
      border-width: 0 0 19px 17px;
    }

    .tongue {
      @include border-bottom-left-radius(40px 80px);
      top: 157px;
      left: 103px;

      width: 20px;
      height: 35px;

      background: #c1272d;
      z-index: 10;
    }

    .tongue-inner {
      @include border-bottom-left-radius(30px 80px);
      top: 152px;
      left: 111px;

      width: 10px;
      height: 25px;

      background: #911d22;
      z-index: 20;
    }

    .front {
      @include border-radius(22px 0 12px 12px);
      top: 95px;
      left: 5px;

      width: 116px;
      height: 74px;

      background: #c69c6d;
      z-index: 30;
    }

    .freckles {
      @include border-radius(50%);
      @include box-shadow(
        -9px 11px 0 0 #957552,
        9px 11px 0 0 #957552
      );

      top: 123px;
      left: 30px;

      width: 7px;
      height: 7px;

      background: #957552;
      z-index: 40;
    }

    .light {
      @include border-radius(50%);
      @include box-shadow(
        0 2px 0 0 #d1b08a
      );

      top: 120px;
      left: 59px;

      width: 30px;
      height: 30px;

      background: #ffffff;
      border: solid 7px #ba9266;
      z-index: 40;
    }

    .nose {
      @include box-shadow(0 -4px 0 0 #333333);
      @include border-top-left-radius(11px 8px);
      @include border-bottom-left-radius(33px 92px);

      top: 99px;
      left: 91px;

      width: 30px;
      height: 43px;

      background: #000000;
      z-index: 40;

      &:before {
        @include border-radius(50%);
        @include box-shadow(inset 0 -2px 0 0 #5c5c5c);

        content: " ";
        position: absolute;
        display: block;

        top: 12px;
        left: 13px;

        width: 12px;
        height: 12px;

        background: #333333;
      }
    }

    .bumper {
      @include border-radius(0 0 0 10px);
      top: 169px;
      left: 17px;

      width: 104px;
      height: 18px;

      background: #957552;
    }

    .tire {
      @include border-radius(0 0 5px 5px);
      top: 169px;
      left: 17px;

      width: 25px;
      height: 36px;

      background: #000000;
      z-index: 1;
    }
  }

  .right {
    right: 0;

    .ear-1 {
      top: 11px;
      right: 29px;

      width: 37px;
      height: 21px;

      border-style: solid;
      border-color: transparent transparent #86694a transparent;
      border-width: 0 37px 21px 0;
    }

    .ear-2 {
      top: 36px;
      right: 0px;

      width: 45px;
      height: 69px;

      border-style: solid;
      border-color: transparent transparent #86694a transparent;
      border-width: 0 26px 69px 0;
    }

    .ear-3 {
      @include border-radius(50%);

      top: 10px;
      right: 62px;

      width: 14px;
      height: 14px;

      background: #86694a;
    }

    .ear-4 {
      @include border-radius(50% 50% 0 0);

      top: 31px;
      right: 26px;

      width: 22px;
      height: 10px;

      background: #86694a;
    }

    .ear-5 {
      @include border-radius(50%);

      top: 100px;
      right: 0;

      width: 14px;
      height: 14px;

      background: #86694a;
    }

    .antenna {
      @include border-radius(0 10px 0 0);

      top: 0;
      left: 0;

      width: 10px;
      height: 31px;

      background: #86694a;
    }

    .roof {
      @include border-top-right-radius(90px 30px);

      top: 13px;
      right: 43px;

      width: 78px;
      height: 23px;

      background: #ad895f;
    }

    .window-border {
      top: 34px;
      right: 28px;

      width: 93px;
      height: 49px;

      border-style: solid;
      border-color: transparent transparent #ad895f transparent;
      border-width: 0 15px 49px 0;
    }

    .window {
      top: 44px;
      right: 35px;

      width: 86px;
      height: 39px;

      border-style: solid;
      border-color: transparent transparent #d4cbc2 transparent;
      border-width: 0 12px 39px 0;
    }

    .window-shade {
      top: 44px;
      right: 44px;

      width: 77px;
      height: 9px;

      border-style: solid;
      border-color: transparent transparent #c5b19e transparent;
      border-width: 0 3px 9px 0;
    }

    .window-border-top {
      @include border-bottom-right-radius(40px 80px);
      top: 34px;
      right: 113px;

      width: 8px;
      height: 15px;

      background: #ad895f;
    }

    .window-border-bottom {
      @include border-top-right-radius(30px 80px);
      top: 72px;
      right: 105px;

      width: 16px;
      height: 45px;

      background: #86694a;
    }

    .hood {
      top: 83px;
      right: 11px;

      width: 110px;
      height: 19px;

      border-style: solid;
      border-color: transparent transparent #b69977 transparent;
      border-width: 0 17px 19px 0;
    }

    .tongue {
      @include border-bottom-right-radius(40px 80px);
      top: 157px;
      right: 103px;

      width: 20px;
      height: 35px;

      background: #a92b2c;
      z-index: 10;
    }

    .tongue-inner {
      @include border-bottom-right-radius(30px 80px);
      top: 152px;
      right: 111px;

      width: 10px;
      height: 25px;

      background: #832323;
      z-index: 20;
    }

    .front {
      @include border-radius(0 22px 12px 12px);
      top: 95px;
      right: 5px;

      width: 116px;
      height: 74px;

      background: #ad895f;
      z-index: 30;
    }

    .freckles {
      @include border-radius(50%);
      @include box-shadow(
        -9px 11px 0 0 #86694a,
        9px 11px 0 0 #86694a
      );

      top: 123px;
      right: 30px;

      width: 7px;
      height: 7px;

      background: #86694a;
      z-index: 40;
    }

    .light {
      @include border-radius(50%);
      @include box-shadow(
        0 2px 0 0 #b69977
      );

      top: 120px;
      right: 59px;

      width: 30px;
      height: 30px;

      background: #ffffff;
      border: solid 7px #a4815a;
      z-index: 40;
    }

    .nose {
      @include box-shadow(0 -4px 0 0 #383531);
      @include border-top-right-radius(11px 8px);
      @include border-bottom-right-radius(33px 92px);

      top: 99px;
      right: 91px;

      width: 30px;
      height: 43px;

      background: #0f0c08;
      z-index: 40;

      &:before {
        @include border-radius(50%);
        @include box-shadow(inset 0 -2px 0 0 #595552);

        content: " ";
        position: absolute;
        display: block;

        top: 12px;
        right: 13px;

        width: 12px;
        height: 12px;

        background: #383531;
      }
    }

    .bumper {
      @include border-radius(0 0 10px 0);
      top: 169px;
      right: 17px;

      width: 104px;
      height: 18px;

      background: #86694a;
    }

    .tire {
      @include border-radius(0 0 5px 5px);
      top: 169px;
      right: 17px;

      width: 25px;
      height: 36px;

      background: #000000;
      z-index: 1;
    }
  }
}

              
            
!

JS

              
                /* 
Dumb and dumber van!
Inspired by https://dribbble.com/shots/1030724-Pull-over
Made by Kevin Jannis (@kevinjannis)
View more at www.janniskev.in 
*/
              
            
!
999px

Console