Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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 class="holder">

  <div class="mask" id="headMask">
    <div class="headContainer">
      <div class="frame headframe0"></div>
      <div class="frame headframe1"></div>
      <div class="frame headframe2"></div>
    </div>
  </div>

  <div class="mask bodyMask" id="bodyMask">
    <div class="bodyContainer">
      <div class="frame bodyframe bodyframe0"></div>
      <div class="frame bodyframe bodyframe1"></div>
      <div class="frame bodyframe bodyframe2"></div>
    </div>
  </div>


  <div class="mask feetMask" id="feetMask">
    <div class="feetContainer">
      <div class="frame feetframe0"></div>
      <div class="frame feetframe1"></div>
      <div class="frame feetframe2"></div>
    </div>
  </div>

  <div class="advanceBtn back" id="BtnLeft_heads"></div>
  <div class="advanceBtn back" id="BtnLeft_bodies"></div>
  <div class="advanceBtn back" id="BtnLeft_feet"></div>
  <div class="advanceBtn forward" id="BtnRight_heads"></div>
  <div class="advanceBtn forward" id="BtnRight_bodies"></div>
  <div class="advanceBtn forward" id="BtnRight_feet"></div>

</div>


<div class="bank headbank invisible">

  <div class="head" id="head1">
    <div class="Bg1 Santa">
      <div class="hat-point">
        <div class="trim-ball"></div>
      </div>
				<div class="face">
        <div class="eye">
          <div class="glint"></div>
        </div>
        <div class="eye">
          <div class="glint"></div>
        </div>
        <div class="beard">
          <div class='mouth'>
            <div class="smile"></div>
          </div>
        </div>
        <div class="nose"></div>
        <div class="hat">
          <div class="trim"></div>
        </div>
        <div class="ear"></div>
        <div class="ear ear-left"></div>
        <div class="hair"></div>
        <div class="hair hair-left"></div>
      </div>
    </div>
  </div>

  <div class="head" id="head2">
    <div class="Bg2 Snowman">
      <div class="face color2">
        <div class='eye'><div class="glint"></div></div><div class='eye'><div class="glint"></div></div>
      <div class="nose"></div><div class="carrot-shadow"></div>
      <div class="smile"></div>
      </div>
    </div>
  </div>

  <div class="head" id="head3">
    <div class="Bg3 Gingerbread">
      <div class="face color3">
        <div class='eye'><div class="glint"></div></div><div class='eye'><div class="glint"></div></div>
        <div class="smile smile-shadow"></div>
        <div class="smile"></div>
      </div>
    </div>
  </div>

  <div class="head" id="head4">
    <div class="Bg4 Nutcracker">
    <div class="wig"></div>
      <div class="face">
        <div class='eye'><div class="glint"></div></div>
        <div class='eye'><div class="glint"></div></div>
        <div class="beard">
          <div class='mouth'><div class='teeth'></div></div>
        </div>
        <div class="nose"></div>
        <div class="hat color4"><div class="knapp"></div><div class="brim"></div>
      </div>
    </div>
  </div>

</div>


<div class="bank bodybank invisible">

  <div class="bod" id="body1">
    <div class="Bg1 Santa">
      <div class="torso color1">
        <div class="knapper">
          <div class="knapp"></div>
          <div class="knapp"></div>
          <div class="knapp"></div>
        </div>
      <div class='collar'></div>
      <div class='belt'></div>
      <div class='buckle'></div>
      </div>
      <div>
        <div class='mitten'></div>
        <div class='arm color1'></div>
        <div class='arm forearm color1'>
          <div class='cuff'></div>
        </div>
        <div class="leftarm">
          <div class='mitten'></div>
          <div class='arm color1'></div>
          <div class='arm forearm color1'>
            <div class='cuff'></div>
          </div>
        </div>
      </div>
    </div>
  </div>

  <div class="bod" id="body2">
    <div class="Bg2 Snowman">
      <div class="torso color2">
        <div class="knapper">
          <div class="knapp"></div>
          <div class="knapp"></div>
          <div class="knapp"></div>
        </div>
      <div>
      <div class='stick-arm'></div>
      <div class='stick-arm stick-forearm'></div>
      <div class="mitten"><div class="thumb"></div>
      </div>
      </div>
      <div class="sticks-left">
      <div class='stick-arm'></div>
      <div class='stick-arm stick-forearm'></div><div class="mitten"><div class="thumb"></div></div>
      </div>
    </div>
    </div>
  </div>

  <div class="bod" id="body3">
    <div class="Bg3 Gingerbread">
      <div class="torso color3">
      <div class="torso frosting"></div>
        <div class="knapper">
          <div class="knapp"></div>
          <div class="knapp"></div>
          <div class="knapp"></div>
          <div class="knapp"></div>
        </div>
        <div class="arm color3"></div><div class="arm left-arm color3"></div>
      </div>
    </div>
  </div>

  <div class="bod" id="body4">
    <div class="Bg4 Nutcracker">
      <div class="torso color4">
      <div class='collar'></div>
       <div class='mouth'><div class='teeth'></div></div>
        <div class="goatee"></div>
        <div class="knapper">
          <div class="knapp"></div>
          <div class="knapp"></div>
          <div class="knapp"></div>
          <div class='arm color4'><div class='band'></div><div class='hand'></div></div>
          <div class='arm arm-left color4'><div class='band'></div><div class='hand'></div></div>
        </div>
      </div>
    </div>
  </div>

</div>

<div class="bank footbank invisible">

    <div class="foot" id="foot1">
      <div class="Bg1 Santa">
        <div class="legs color1">
          <div class="boots"></div>
        </div>
        <div class="feet"></div>
        <div class="split Bg1"></div>
      </div>
    </div>

    <div class="foot" id="foot2">
      <div class="Bg2 Snowman">
      <div class="legs color2">
          <div class="boots"></div>
        </div>
        <div class="feet"></div>
        <div class="split Bg2"></div>
      </div>
    </div>

    <div class="foot" id="foot3">
      <div class="Bg3 Gingerbread">
        <div class="legs color3"></div>
        <div class="feet color3"><div class="frosting"></div><div class="frosting"></div></div>
        <div class="split Bg3 Gingerbread"></div>
      </div>
    </div>

    <div class="foot" id="foot4">
        <div class="Bg4 Nutcracker">
        <div class="legs">
          <div class="bulge"></div>
          <div class="boots"></div>
        </div>
        <div class="feet"></div>
        <div class="split Bg4"></div>
      </div>
    </div>

</div>
              
            
!

CSS

              
                body {
  background: #001a00;
}

/* ----- STRUCTURE ----- */
  .holder {
    width: 400px;
    height: 650px;
    margin: 18px auto 0;
    background: #000;
    border: solid 22px #300;
    border-radius: 12px;
  }

  .mask {
    width: 400px;
    height: 200px;
    overflow: hidden;
  }

  .bodyMask {
    height: 250px;
  }

  .feetMask {
    height: 200px;
  }

  .headContainer,
  .bodyContainer,
  .feetContainer {
    transition: transform 0.35s ease-out;
    position: relative;
  }

  .frame {
    width: 400px;
    height: 200px;
    position: relative;
  }

  .bodyframe {
    height: 250px;
  }

  .headframe0,
  .bodyframe0,
  .feetframe0 {
    left: -400px;
  }

  .headframe1,
  .feetframe1 {
    top: -200px;
  }

  .bodyframe1 {
    top: -250px;
  }

  .feetframe1 {
    top: -200px;
  }

  .headframe2,
  .feetframe2 {
    top: -400px;
    left: 400px;
  }

  .bodyframe2  {
    top: -500px;
    left: 400px;
  }

  .feetframe2 {
    top: -400px;
    left: 400px;
  }

  .head,
  .foot {
    width: 400px;
    height: 200px;
  }

  .bod {
    width: 400px;
    height: 250px;
  }

  .color1 {
    background: #e60000;
  }

  .color2 {
    background: #e6ffff;
  }

  .color3 {
    background: #a6590c;
  }

  .color4 {
    background: #000066;
  }


  .advanceBtn,
  .glint {
    width: 0;
    height: 0;
    margin-bottom: 150px;
    border-top: 25px solid transparent;
    border-right: 35px solid #eee;
    border-bottom: 25px solid transparent;
    position: relative;
  }

  .advanceBtn:active {
    border-right: 42px solid #ffff33;
  }

  .glint {
    transform: scale(0.15);
    right: 14px;
    bottom: 23px;
  }

  .back {
    top: -500px;
    right: 75px;
  }

  .back:active {
    right: 81px;
  }

  .forward {
    top: -1100px;
    left: 435px;
    transform: rotate(180deg);
  }

  .bank {
    position: relative;
    right: 400px;
    bottom: 500px;
    transform: scale(0.25);
  }

  .bodybank {
    right: 300px;
    bottom: 1500px;
  }
  .footbank {
    right: 200px;
    bottom: 2350px;
  }

  .invisible {
    display: none;
  }


/* ----- BACKGROUND BLOCKS ----- */
  .Bg1 {
    height: 250px;
    background: #ffff80;
    overflow: hidden;
  }

  .Bg2 {
    height: 250px;
    background: #80b3ff;
    overflow: hidden;
  }

  .Bg3 {
    height: 250px;
    background: #80ff9f;
    overflow: hidden;
  }

  .Bg4 {
    height: 250px;
    background: #ff9999;
    overflow: hidden;
  }

  .Bg5 {
    height: 250px;
    background: midnightblue;
    overflow: hidden;
  }


/* ----- GENERIC FACE PARTS ----- */
  .face {
    height: 185px;
    width: 165px;
    margin: 0 auto;
    position: relative;
  }
  .eye {
    height: 17px;
    width: 12px;
    margin: 0 9px;
    background: #000;
    border: 6px solid #e6f2ff;
    border-radius: 40% 40% 50% 50%;
    border-bottom: 8px solid #e6f2ff;
    border-top: 6px solid #d59090;
    position: relative;
    top: 40%;
    left: 26%;
    float: left;
  }

  .nose  {
    height: 28px;
    width: 33px;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
  }

  .mouth {
    height: 25px;
    width: 70px;
    border-radius: 30% 30% 50% 50%;
    margin: 0 auto;
    position: relative;
      top: 20px;
  }

  .smile {
    height: 20px;
    width: 60px;
    margin: 0 auto;
    position: relative;
    border-radius: 40%;
  }

   .hat {
    height: 50px;
    width: 150px;
    position: relative;
    margin: 0 auto;
  }


/* ----- SANTA FACE ----- */
  .Santa .face {
    height: 180px;
    width: 160px;
    top: -90px;
    background-color: #ffb3b3;
    border-radius: 90px 90px 30px 30px;
    box-shadow: 0 -5px 20px 10px #e48181 inset;
  }
  .Santa .nose {
    top: 18px;
    background-color: #ff9999;
    box-shadow: 0 -2px 2px 2px #ff6666 inset;
  }
  .Santa .mouth {
    background-color: #ffb3b3;
    box-shadow: 0 3px 8px 3px #ff8080 inset;
  }
  .Santa .smile {
    top: -8px;
    border-bottom: solid 4px #e05252;
  }
  .beard {
    height: 70px;
    width: 175px;
    border-radius: 40%;
    position: relative;
    top: 102px;
    left: -5px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 -5px 25px 8px #aaa inset,
                0 5px 5px 2px #888;
  }
  .Santa .hat {
    border-radius: 90px 90px 0 0;
    top: -105px;
    background-color: #e60000;
    box-shadow: 5px 5px 20px 5px #b30000 inset;
  }
  .hat-point {
    height: 115px;
    width: 100px;
    border-radius: 90px 10px;
    position: relative;
    top: 20px;
    left: -75px;
    margin: 0 auto;
    background-color: #b30000;
  }
  .trim {
    height: 35px;
    width: 170px;
    border-radius: 40%;
    position: relative;
      top: 35px;
      left: -12px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 -3px 5px 7px #ccc inset;
    z-index: 100;
  }
  .trim-ball {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    position: relative;
      top: 105px;
      left: -20px;
    background-color: #fff;
    box-shadow: 0 -2px 12px 8px #bbb inset;
  }
  .Santa .hair {
    height: 50px;
    width: 35px;
    border-radius: 120px 0 80px 50px;
    position: relative;
      top: -182px;
    background-color: #ddd;
    box-shadow: -2px -5px 5px 7px #ccc inset;
  }
  .Santa .hair-left {
    top: -233px;
    left: 127px;
    transform: scale(-1, 1);
  }
  .ear  {
    height: 38px;
    width: 20px;
    border-radius: 60% 40% 40% 40%;
    margin: 0 auto;
    position: relative;
      top: -75px;
      left: -82px;
    background-color: #e99696;
    box-shadow: 5px 2px 5px 2px #ff9999 inset;
  }
  .ear-left {
    transform: scale(-1, 1);
    top: -115px;
    left: 80px;
    box-shadow: -5px 2px 5px 2px #ff9999 inset;
  }

/* ----- SNOWMAN FACE ----- */
  .Snowman .face {
    top: 30px;
    width: 190px;
    border-radius: 50% 50% 38% 38%;
    box-shadow: -5px -25px 35px 15px #b9b9f9 inset;
  }
  .Snowman .eye {
    width: 17px;
    margin: 0 14px;
    border: solid 2px #6b4d2e;
    border-radius: 9px;
  }
  .Snowman .nose {
    height: 28px;
    top: 90px;
    left: 1px;
    background: #e6b800;
    box-shadow: 6px 3px 2px 8px #e67300 inset;
    border: solid 2px #cc6600;
    z-index: 50;
  }
  .carrot-shadow {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-right: 30px solid #d4cae8;
    border-bottom: 50px solid transparent;
    position: relative;
    top: 68px;
    left: 100px;
    transform: rotate(-35deg);
    filter: blur(1px);
  }
  .Snowman .smile {
    height: 27px;
    width: 80px;
      top: 15px;
    border-bottom: solid 5px #b9b9f9;
    border-radius: 50%;
  }

/* ----- GINGERBREAD FACE ----- */
  .Gingerbread .face {
    top: 20px;
    height: 200px;
    width: 195px;
    border-radius: 50% 50% 48% 48%;
    box-shadow: -5px -5px 10px 2px #664019 inset,
                5px 10px 15px 5px #cd8032 inset;
  }
  .Gingerbread .eye {
    height: 32px;
    width: 32px;
    margin: 0 13px;
    background: #b30000;
    border: solid 2px #cce6ff;
    top: 34%;
    left: 20%;
    border-radius: 50%;
    box-shadow: 1px 2px 4px 4px #b30000 inset,
                -2px -4px 0 7px #f20d0d inset;
  }
  .Gingerbread .glint {
    top: -21px;
    left: -10px;
    border-right: 35px solid #fcb59c;
  }
  .Gingerbread .smile {
    height: 40px;
    width: 100px;
    top: 43px;
    left: 2px;
    border-bottom: solid 11px #ffb3b3;
  }
  .Gingerbread .smile-shadow {
    top: 98px;
    left: 2px;
    border-bottom: solid 12px #664019;
    filter: blur(6px);
  }

/* ----- NUTCRACKER FACE ----- */
  .wig {
    height: 100px;
    width: 178px;
    border-radius: 60px 60px 15px 15px;
    position: relative;
    top: 65px;
    margin: 0 auto;
    background-color: #111;
    box-shadow: 0 -5px 25px 8px #333 inset,
                0 2px 5px 2px #444;
  }
  .Nutcracker .face {
    height: 162px;
    width: 138px;
    top: -60px;
    background-color: #efa78f;
    box-shadow: 0 -5px 20px 10px #c07259 inset;
  }
  .Nutcracker .eye {
    height: 22px;
    width: 16px;
    margin: 0 12px;
    background: #001a66;
    border: 6px solid #e6f2ff;
    border-radius: 50%;
    border-top: 3px solid #c07259;
    position: relative;
    top: 35%;
    left: 13%;
    float: left;
  }
  .Nutcracker .glint {
    top: -20px;
    left: -15px;
  }
  .Nutcracker .mouth {
    height: 50px;
    width: 80px;
    border-radius: 30% 30% 0 0;
    margin: 0 auto;
    position: relative;
      top: -20px;
    background-color: #950404;
    box-shadow: 0 20px 15px 8px #d92626 inset;
    border: solid 4px #b30000;
    border-top: solid 8px #b30000;
    overflow: hidden;
  }
  .teeth {
    height: 10px;
    width: 80px;
    background: #ddd;
  }
  .Nutcracker .beard {
    height: 80px;
    width: 110px;
    border-radius: 23px;
    position: relative;
    top: 90px;
    left: 2px;
    margin: 0 auto;
    background-color: #111;
    box-shadow: 0 -5px 25px 8px #333 inset,
                0 5px 8px 2px #000;
  }
  .Nutcracker .nose {
    height: 50px;
    width: 18px;
    top: -33px;
    left: 1px;
    border-radius: 15px 15px 5px 5px;
    background: #e19b84;
    box-shadow: 0 -2px 5px 1px #c07259 inset;
  }
  .Nutcracker .hat {
    height: 72px;
    width: 140px;
    top: -164px;
    left: -1px;
    box-shadow: 0 5px 15px 5px #000033 inset;
    border-top: solid 5px #b30000;
  }
  .Nutcracker .hat .knapp {
    height: 42px;
    width: 35px;
    left: 52px;
    top: 22px;
    border-radius: 50% 50% 10px 10px;
    box-shadow: 0 4px 8px 2px #824d17 inset;
  }
  .brim {
    height: 10px;
    width: 160px;
    background: #000;
    position: relative;
    top: 65px;
    left: -10px;
    margin: 0 auto;
    border-radius: 8px 8px 0 0;
  }


/* ----- GENERIC BODY PARTS ----- */

  .torso {
    height: 275px;
    width: 315px;
    border-radius: 48% 48% 42% 42%;
    margin: 0 auto;
    position: relative;
  }

  .knapper  {
    height: 150px;
    width: 20px;
    margin: 0 auto;
    position: relative;
    top: 60px;
  }

  .knapp  {
    height: 20px;
    width: 20px;
    background: #ee8c2b;
    border-radius: 50%;
    position: relative;
    margin-bottom: 25px;
    float: left;
    box-shadow: -2px -4px 4px 2px #824d17 inset;
  }

  .arm {
    height: 130px;
    width: 90px;
    margin: 0 auto;
    position: relative;
    z-index: 50;
  }

  .mitten {
    height: 65px;
    width: 90px;
    position: relative;
    border-radius: 80px 30px 100px 60px;
  }


/* ----- SANTA BODY ----- */
  .torso {
    bottom: 15px;
    box-shadow: 0 -5px 30px 15px #800000 inset;
  }
  .collar {
    width: 212px;
    height: 15px;
    background: #ddd;
    border-top: solid 4px #baa;
    border-bottom: solid 6px #004d00;
    border-radius: 50px 50px 15px 15px;
    margin: 0 auto;
    position: relative;
      top: -135px;
  }
  .belt {
    width: 300px;
    border-bottom: solid 30px #111;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
      top: 14px;
  }
  .buckle {
    width: 13px;
    height: 18px;
    margin: 0 auto;
    position: relative;
    top: -22px;
    border: solid 13px #ad8a1f;
  }
  .Santa .arm {
    border-radius: 80px 90px 100px 70px;
    top: -325px;
    left: -130px;
    transform: rotate(45deg);
    box-shadow: 15px -5px 30px 5px #990000 inset;
  }
  .Santa .forearm {
    height: 110px;
    width: 80px;
      top: -410px;
      left: -147px;
    transform: rotate(-25deg);
  z-index: 10;
  }
  .cuff {
    height: 35px;
    width: 87px;
    background: #fff;
    position: relative;
      top: 90px;
      left: -5px;
    border-radius: 10px;
  }
  .Santa .mitten {
    top: -120px;
    left: 42px;
    background: #008822;
    box-shadow: 0 -5px 10px 5px #004400 inset;
  }
  .leftarm {
    transform: scale(-1, 1);
    position: relative;
    top: -305px;
  }

/* ----- SNOWMAN BODY ----- */
  .Snowman .torso {
    box-shadow: -5px 25px 35px 5px #b9b9f9 inset,
                -10px -25px 50px 30px #b9b9f9 inset;
  }
  .Snowman .knapp {
    height: 25px;
    width: 25px;
    border-radius: 10px;
    background: #000;
  }

  .stick-arm {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-right: 110px solid #734d26;
    border-bottom: 2px solid transparent;
    position: relative;
    top: -80px;
    left: -42px;
    transform: rotate(-32deg);
  }

  .stick-forearm {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-right: none;
    border-left: 100px solid #734d26;
    border-bottom: 2px solid transparent;
    position: relative;
    top: -20px;
    left: -48px;
    transform: rotate(60deg);
  }

  .sticks-left {
    transform: scale(-1, 1) rotate(-5deg);
    position: relative;
    top: -85px;
    left: -5px;
  }

  .Snowman .mitten {
    height: 57px;
    border-radius: 40px 80px 70px 110px ;
    background: #336600;
    box-shadow: 0 -5px 15px 3px #a6d279 inset;
    top: 18px;
    left: -38px;
    transform: rotate(75deg);
  }

  .thumb {
    height: 28px;
    width: 48px;
    position: relative;
      top: 3px;
      left: 8px;
    border-radius: 40px 50px 50px 70px;
    background: #336600;
    box-shadow: -3px 0 10px 1px #a6d279 inset;
    z-index: 500;
  }

  .right-mitten {
    transform: scale(-1, 1);
    top: -100px;
  }

/* ----- GINGERBREAD BODY ----- */
  .Gingerbread .torso {
    bottom: 1px;
    height: 257px;
    width: 230px;
    border-radius: 25%;
    box-shadow: -5px -5px 12px 4px #664019 inset,
                5px -4px 20px 3px #cd8032 inset;
  }
  .Gingerbread .frosting {
    top: 14px;
    height: 212px;
    width: 190px;
    background: transparent;
    border: solid 8px #ffffb3;
    box-shadow: 2px 2px 15px 2px #7b4d1e inset;
    z-index: 200;
  }
  .Gingerbread .knapper{
    top: -195px;
  }
  .Gingerbread .knapp {
    height: 25px;
    width: 25px;
    background: #ffff80;
    box-shadow: -2px -4px 5px 2px #a8a824 inset;
  }
  .Gingerbread .arm {
    height: 180px;
    width: 75px;
    border-radius: 100px;
    top: -375px;
    left: -120px;
    transform: rotate(42deg);
    border-bottom: solid 4px #664019;
  }
  .Gingerbread .left-arm {
    transform: rotate(-42deg);
    top: -557px;
    left: 120px;
  }

/* ----- NUTCRACKER BODY ----- */
 .Nutcracker .torso {
  height: 250px;
  width: 175px;
  top: 1px;
  border-radius: 40px 40px 7px 7px;
  box-shadow: 0 -5px 30px 15px #00001a inset;
  }
  .Nutcracker .collar {
    height: 16px;
    width: 215px;
    top: -2px;
    left: -20px;
    background: #ff8c1a;
    border-top: solid 4px #ffa64d;
    border-bottom: solid 6px #4d0000;
    border-radius: 50px 50px 20px 20px;
    z-index: 300;
  }
  .Nutcracker .torso .mouth {
    height: 40px;
    width: 80px;
    border-radius: 0 0 20% 20%;
    margin: 0 auto;
    position: relative;
      top: -45px;
      left: 2px;
    background-color: #950404;
    border: solid 4px #b30000;
    border-bottom: solid 12px #b30000;
    border-top: none;
    overflow: hidden;
    z-index: 500;
  }
  .torso .teeth {
    position: relative;
    height: 15px;
    width: 80px;
    top: 25px;
    background: #ddd;
  }
  .Nutcracker .goatee {
    height: 85px;
    width: 110px;
    border-radius: 0 0 60px 60px;
    position: relative;
    top: -100px;
    left: 2px;
    margin: 0 auto;
    background-color: #111;
    box-shadow: 0 -5px 25px 8px #333 inset,
                0 5px 8px 2px #000;
    z-index: 450;
  }
  .Nutcracker .knapper {
    top: -75px;
  }
  .Nutcracker .arm{
    height: 178px;
    width: 55px;
    left: -125px;
    top: -70px;
    border-radius: 10px 10px 30px 30px;
    box-shadow: 0 -5px 15px 5px #00001a inset;
  }
  .band {
    position: relative;
    top: 140px;
    height: 15px;
    width: 55px;
    background: #ff8c1a;
  }
  .hand {
    height: 53px;
    width: 51px;
    position: relative;
    top: 155px;
    border-radius: 20px 20px 50% 50%;
    background-color: #efa78f;
    box-shadow: 0 -5px 20px 10px #c07259 inset;
  }
  .Nutcracker .arm-left {
    top: -250px;
    left: 92px;
    float: left;
  }


/* ----- GENERIC FEET and LEGS ----- */
  .legs {
    height: 130px;
    width: 160px;
    margin: 0 auto;
  }
  .feet {
    height: 45px;
    width: 315px;
    border-radius: 55px 55px 0 0;
    margin: 0 auto;
    position: relative;
    top: -10px;
  }
  .split {
    height: 155px;
    width: 3px;
    margin: 0 auto;
    position: relative;
  }


/* ----- SANTA FEET ----- */
  .Santa .legs {
    height: 130px;
    width: 160px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 5px 40px 10px #660000 inset;
  }
  .Santa .boots {
    height: 75px;
    width: 160px;
    margin: 0 auto;
    background: #111;
    position: relative;
    top: 50px;
    box-shadow: 0 5px 40px 10px #111 inset;
  }
  .Santa .feet {
    background: #000;
    box-shadow: 0 -5px 40px 10px #222 inset;
  }
  .Santa .split {
    width: 4px;
    top: -160px;
    border-radius: 2px;
  }

/* ----- SNOWMAN FEET ----- */
  .Snowman .legs {
    height: 130px;
    width: 170px;
    margin: 0 auto;
    box-shadow: 0 -5px 20px 25px #babaf7 inset;
  }
  .Snowman .boots {
    height: 60px;
    width: 180px;
    top: 60px;
    left: -6px;
    background: #991f00;
    box-shadow: 5px 0 20px 5px #361717 inset;
  }
  .Snowman .feet {
    height: 60px;
    top: -15px;
    border-radius: 35px 35px 8px 8px;
    background: #991f00;
    box-shadow: 0 -5px 20px 5px #361717 inset;
  }
  .Snowman .split {
    height: 135px;
    width: 3px;
    top: -150px;
  }

/* ----- GINGERBREAD FEET ----- */
  .Gingerbread .legs {
    width: 165px;
    box-shadow: -5px -5px 15px 2px #664019 inset,
                5px 0 10px 2px #664019 inset;
  }
  .Gingerbread .feet {
      height: 60px;
      top: -15px;
      border-radius: 35px 35px 8px 8px;
      box-shadow: 0 -5px 20px 2px #664019 inset;
    }
  .Gingerbread .feet .frosting {
    height: 27px;
    width: 115px;
    margin-left: 25px;
    position: relative;
    top: 8px;
    left: -10px;
    background: transparent;
    border: solid 8px #ccd9ff;
    border-radius: 25px 25px 10px 10px;
    float: left;
  }
  .Gingerbread .split {
    height: 165px;;
    width: 9px;
    top: -175px;
    border-radius: 4px;
  }

/* ----- NUTCRACKER LEGS ----- */
  .Nutcracker .legs {
    height: 140px;
    width: 150px;
    margin: 0 auto;
    overflow: hidden;
    background: #ffffcc;
    box-shadow: 0 5px 40px 10px #8a92a8 inset;
  }
  .bulge {
    position: relative;
    top: -20px;
    height: 48px;
    width: 67px;
    border-radius: 0 0 50% 50%;
    margin: 0 auto;
    background: #ffffcc;
    box-shadow: 0 10px 30px 5px #8a92a8 inset;
  }
  .boots {
    height: 105px;
    width: 160px;
    margin: 0 auto;
    background: #b30000;
    position: relative;
    box-shadow: 0 5px 20px 5px #4d0000 inset;
    top: 5px;
    border-top: solid 12px #ff8c1a;
  }
  .Nutcracker .feet {
    top: -2px;
    width: 290px;
    height: 40px;
    background: #b30000;
    border-radius: 30px 30px 5px 5px;
    box-shadow: 0 -5px 5px 5px #4d0000 inset;
  }
  .Nutcracker .split {
    width: 9px;
    top: -145px;
    border-radius: 4px;
  }

              
            
!

JS

              
                
var head = {
  btnLeft: document.querySelector('#BtnLeft_heads'),
  btnRight: document.querySelector('#BtnRight_heads'),
  container: document.querySelector('.headContainer'),
  mask: document.querySelector('#headMask'),
  frame0: document.querySelector('.headframe0'),
  frame1: document.querySelector('.headframe1'),
  frame2: document.querySelector('.headframe2'),
  bank: document.querySelectorAll('.head')
};

var body = {
  btnLeft: document.querySelector('#BtnLeft_bodies'),
  btnRight: document.querySelector('#BtnRight_bodies'),
  container: document.querySelector('.bodyContainer'),
  mask: document.querySelector('#bodyMask'),
  frame0: document.querySelector('.bodyframe0'),
  frame1: document.querySelector('.bodyframe1'),
  frame2: document.querySelector('.bodyframe2'),
  bank: document.querySelectorAll('.bod')
};

var feet = {
  btnLeft: document.querySelector('#BtnLeft_feet'),
  btnRight: document.querySelector('#BtnRight_feet'),
  container: document.querySelector('.feetContainer'),
  mask: document.querySelector('#feetMask'),
  frame0: document.querySelector('.feetframe0'),
  frame1: document.querySelector('.feetframe1'),
  frame2: document.querySelector('.feetframe2'),
  bank: document.querySelectorAll('.foot')
};

var holder = document.querySelector('.holder');
var parts = [head, body, feet];
var containerClone;

function setFirstFrame(section) {
  var randomPart = Math.floor(Math.random() * 4);
  section.frame1.innerHTML = section.bank[randomPart].innerHTML;
	section.next = randomPart;
  section.previous = randomPart;
}

function activateButtons(section) {
  section.btnLeft.addEventListener('click', function(event) {
    holder.style.borderColor = '#300';
    moveL(section);
  });
  section.btnRight.addEventListener('click', function(event) {
    holder.style.borderColor = '#300';
    moveR(section);
  });
}

function moveL(section) {
  if (section.next === section.bank.length-1) section.next = 0;
  else section.next = section.next+1;
  section.frame2 = section.container.children[2];
  section.frame2.innerHTML = section.bank[section.next].innerHTML;
  section.container.style.transform = "translate(-400px)";
  section.previous = section.next;
  setTimeout(function(){reload_moveL(section);}, 355);
}

function moveR(section) {
  if (section.previous === 0) section.previous = section.bank.length-1;
  else section.previous = section.previous-1;
  section.frame0 = section.container.children[0];
  section.frame0.innerHTML = section.bank[section.previous].innerHTML;
  section.container.style.transform = "translate(400px)";
  section.next = section.previous;
  setTimeout(function(){reload_moveR(section);}, 355);
}

function reload_moveL(section) {
  section.frame1 = section.container.children[1];
  section.frame1.innerHTML = section.bank[section.next].innerHTML;
  section.frame2.innerHTML = '';
  showMatch(section);
}

function reload_moveR (section) {
  section.frame1 = section.container.children[1];
  section.frame1.innerHTML = section.bank[section.previous].innerHTML;
  section.frame0.innerHTML = '';
  showMatch(section);
}

function showMatch(section) {
  var currentHead = head.frame1.children[0];
  var currentBody = body.frame1.children[0];
  var currentFeet = feet.frame1.children[0];
  var style = window.getComputedStyle(currentHead);
  var bgColor = style.getPropertyValue("background-color");

  if (currentHead.className === currentBody.className && currentHead.className === currentFeet.className) {
    holder.style.borderColor = bgColor;
  }
  resetFrames(section);
}

function resetFrames(section) {
  containerClone = document.createElement('div');
  containerClone.innerHTML = section.container.innerHTML;
  section.container.remove();
  section.container = document.createElement('div');
  section.container.className = 'headContainer';
  section.container.innerHTML = containerClone.innerHTML;
  section.mask.appendChild(section.container);
  containerClone.remove();
}

function makeCharacters(parts) {
  for (var i = 0; i < parts.length; i++) {
    setFirstFrame(parts[i]);
    activateButtons(parts[i]);
  }
}

makeCharacters(parts);

              
            
!
999px

Console