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="wrapper">
     <div class="earth">
       <span class="inner"></span>
       <span class="circle"></span>
       <span class="double-circle2"></span>
       <span class="double-circles"></span>
       <div class="right-overlay"></div>
     </div>
     <div class="hands">
     	<div class="hand right">
     		<div class="base">
     			<div class="inner-base"></div>
     		</div>
     		<div class="hand-open">
     			<span></span>
     			<span></span>
     			<span></span>
     			<span></span>
     		</div>
     	</div>
     	<div class="hand left">
     		<div class="base">
     			<div class="inner-base"></div>
     		</div>
     		<div class="hand-open">
     			<span></span>
     			<span></span>
     			<span></span>
     			<span></span>
     		</div>
     	</div>
     </div>
     <div class="circular-tree">
        <div class="tree">
	        <div class="inner"></div>
	     	<div class="right-overlay"></div>
        </div>
     	<div class="base"></div>
     </div>
     <div class="triangular-tree">
     	<div class="tree">
     		<div class="part1 part">
     			<span class="top triangle"></span>
     			<span class="bottom triangle"></span>
     		</div>
     		<div class="part2 part">
     			<span class="top triangle"></span>
     			<span class="bottom triangle"></span>
     			<span class="bottom2 triangle"></span>
     		</div>
     		<div class="part3 part">
     			<span class="bottom triangle"></span>
     			<span class="bottom2 triangle"></span>
     			<span class="bottom3 triangle"></span>
     			<span class="bottom4 triangle"></span>
     			<span class="bottom5 triangle"></span>
     		</div>
     	</div>
     	<div class="base"></div>
     </div>
     <div class="wolf">
        <div class="body">
        	<div class="part part1"></div>
        	<div class="part part2"></div>
        	<div class="part part3"></div>
        </div>
     	<div class="tail"></div>
     	<div class="legs"></div>
     </div>
     <div class="mini-tree mini1">
        <div class="tree"></div>
     	<div class="base"></div>
     </div>

     <div class="mini-tree mini2">
        <div class="tree"></div>
     	<div class="base"></div>
     </div>
     <div class="leaf">
     	<div class="base">
     		<span></span>
     	</div>
     </div>
   </div>
              
            
!

CSS

              
                body {
	background-color: #fff;
}

body {
  margin: 50px;
}

/* Mixins */
.inner-shadow (@x: 0, @y: 0px, @blur: 0px, @spread: 0, @color: transparent) {
    -webkit-box-shadow: inset @x @y @blur @spread @color;
    -moz-box-shadow:    inset @x @y @blur @spread @color;
    box-shadow:         inset @x @y @blur @spread @color;
}

.box-shadow (@x: 0, @y: 0px, @blur: 0px, @spread: 0, @color: transparent) {
    -webkit-box-shadow:  @x @y @blur @spread @color;
    -moz-box-shadow:     @x @y @blur @spread @color;
    box-shadow:          @x @y @blur @spread @color;
}

.border-radius (@radius: 5px) {
    -webkit-border-radius: @radius;
    -moz-border-radius:    @radius;
    border-radius:         @radius;
}

.transform(@string){
    -webkit-transform: @string;
    -moz-transform:      @string;
    -ms-transform:       @string;
    -o-transform:        @string;
}

.wrapper {
  width: 360px;
  height: 454px;
  margin: 0 auto;
  border: 1px solid rgba(0,0,0,0.15);
  position: relative;
  //background: url("../blue-print.jpg");
  background: #f7f6e2;

  .earth {
    background: #5caa32;
    box-sizing: border-box;
    width: 238px;
    height: 238px;
    .border-radius(50%);
    .transform(translateX(-50%));
    position: absolute;
    left: 50%;
    bottom: 88px;
    overflow: hidden;
    z-index: 500;

    .inner {
      width: 155px;
      height: 155px;
      background: #8ac358;
      .border-radius(50%);
      .transform(translateX(-50%) translateY(-50%));
      position: absolute;
      left: 50%;
      top: 50%;

      &:after {
        content: "";
        width: 75px;
        height: 75px;
        .border-radius(50%);
        .transform(translateX(-50%) translateY(-50%));
        background: #bedc75;
        position: absolute;
        left: 50%;
        top: 50%;
      }
    }

    .circle {
      position: absolute;
      width: 24px;
      height: 24px;
      background: #bfda7f;
      .border-radius(50%);
      .box-shadow(77px, 58px, 0, 0, #bfda7f);
      bottom: 69px;
      left: 46px;
      z-index: 60;
    }

    .double-circle2 {
      position: absolute;
      width: 116px;
      height: 70px;
      background: #96D063;
      .border-radius(50%);
      .transform(rotate(-62deg));
      bottom: 38px;
      right: -16px;
      z-index: 70;

      &:after {
        content: "";
        position: absolute;
        left: 18px;
        top: 18px;
        width: 50px;
        height: 40px;
        .border-radius(50%);
        background: darken(#96D063, 15%);
        z-index: 80;
      }
    }

    .double-circles {
      position: absolute;
      width: 80px;
      height: 45px;
      background: #d5e6af;
      border-radius: 50%;
      top: -7px;
      right: 90px;
      .transform(rotate(-15deg));
      .box-shadow(-32px, 17px, 0, -2px, #d5e6af);
      z-index: 50;
    }

    .right-overlay {
      width: 119px;
      height: 119px;
      background: rgba(255, 255, 255, 0.31);
      position: absolute;

      &:after {
        content: "";
        width: 119px;
        height: 119px;
        background: #fff;
        position: absolute;
        top: 119px;
        opacity: 0.15;
      }

      &:before {
        content: "";
        width: 119px;
        height: 119px;
        background: rgba(138, 190, 13, 0.38);
        position: absolute;
        left: 119px;
        opacity: 1;
      }
    }
  }

  .hands {
    .right {
      right: 140px;
    }

    .left {
      left: 140px;
      .transform(scaleX(-1));
    }
    .hand {
      position: absolute;
      bottom: 0;

      .base {
        width: 31px;
        height: 33px;
        background: #57c8fc;
        position: relative;

        &:after {
          content: "";
          width: 31px;
          height: 33px;
          position: absolute;
          left: 31px;
          background: #0083dd;
        }

        .inner-base {
          position: absolute;
          width: 21px;
          height: 40px;
          background: #f7c54a;
          bottom: 33px;
          left: 47%;
          .transform(translateX(-20%));

          &:after {
            content: "";
            position: absolute;
            left: 20px;
            width: 20px;
            height: 27px;
            bottom: 0;
            background: #f0a02d;
          }
        }

      }

      .hand-open {
        &:after {
          content: "";
          width: 9px;
          height: 16px;
          background: #f7c54b;
          position: absolute;
          top: -78px;
          border-top-left-radius: 0;
          border-top-right-radius: 0;
          border-bottom-right-radius: 15px;
          border-bottom-left-radius: 0;
          transform: rotate(-45deg);
          right: -74px;
        }

        span:nth-child(1) {
          position: absolute;
          width: 123px;
          height: 11px;
          top: -85px;
          left: 12px;
          border: 18px solid #000;
          border-top-left-radius: 73% 100px;
          border-top-right-radius: 73% 100px;
          border-bottom-right-radius: 73% 0px;
          border-bottom-left-radius: 73% 0px;
          border-color: #f0a02c transparent transparent transparent;
          .transform(rotate(139deg));
        }

        span:nth-child(2) {
          position: absolute;
          width: 102px;
          height: 19px;
          top: -89px;
          left: 0px;
          border: 16px solid #000;
          border-top-left-radius: 73% 100px;
          border-top-right-radius: 86% 96px;
          border-bottom-right-radius: 73% 0px;
          border-bottom-left-radius: 73% 0px;
          border-color: #f8c44a transparent transparent transparent;
          .transform(rotate(140deg));
        }

        span:nth-child(3) {
          position: absolute;
          width: 23px;
          height: 35px;
          top: -114px;
          right: -80px;
          background: #f7f6e2;
          transform: rotate(45deg);

          &:after {
            content: "";
            position: absolute;
            width: 17px;
            height: 28px;
            background: #f7f6e2;
            left: 20px;
            bottom: -3px;
          }

          &:before {
            content: "";
            position: absolute;
            width: 58px;
            height: 38px;
            background: #f7f6e2;
            top: -29px;
          }
        }

        span:nth-child(4) {
          position: absolute;
          width: 17px;
          height: 2px;
          background: #f8c44a;
          left: 29px;
          top: -40px;
        }
      }
    }
  }

  .circular-tree {
    width: 100px;
    height: 130px;
    position: absolute;
    left: 61px;
    bottom: 302px;
    transform-origin: bottom center;
    .transform(rotate(-39deg));

    .tree {
      background: #5caa32;
      box-sizing: border-box;
      width: 100px;
      height: 100px;
      .border-radius(50%);
      .transform(translateX(-50%));
      position: absolute;
      left: 50%;
      top: 0px;
      overflow: hidden;

      .inner {
        width: 65px;
        height: 65px;
        background: #8ac358;
        .border-radius(50%);
        .transform(translateX(-50%) translateY(-50%));
        position: absolute;
        left: 50%;
        top: 50%;

        &:after {
          content: "";
          width: 35px;
          height: 35px;
          .border-radius(50%);
          .transform(translateX(-50%) translateY(-50%));
          background: #bedc75;
          position: absolute;
          left: 50%;
          top: 50%;
        }
      }

      .right-overlay {
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.31);
        position: absolute;

        &:after {
          content: "";
          width: 50px;
          height: 50px;
          background: #fff;
          position: absolute;
          top: 50px;
          opacity: 0.15;
        }

        &:before {
          content: "";
          width: 50px;
          height: 50px;
          background: rgba(138, 190, 13, 0.38);
          position: absolute;
          left: 50px;
          opacity: 1;
        }
      }
    }

    .base {
      width: 35px;
      height: 40px;
      background: #736357;
      position: absolute;
      bottom: -1px;
      z-index: -1;
      left: 50%;
      .transform(translateX(-50%));
      overflow: hidden;

      &:after {
        content: "";
        width: 21px;
        height: 21px;
        background: #c39b6b;
        position: absolute;
        bottom: -3px;
        left: -2px;
      }
    }     
  }

  .triangular-tree {
    width: 86px;
    height: 102px;
    position: absolute;
    left: 50%;
    .transform(translateX(-50%) scaleY(1.15) rotate(-4deg));
    //border: 1px solid red;
    top: 22px;

    .tree {
      .part {
        position: absolute;
        left: 30px;
      }

      .triangle {
        position: absolute;
        width: 0px;
        height: 0px;
        border-width: 15px 12px 15px 12px;
        border-style: solid;
        box-sizing: border-box;
      }

      .part1 {
        top: -15px;
        z-index: 300;

        .top {
          border-color: transparent transparent #a4ce3d transparent;
        }

        .bottom {
          border-color: #348817 transparent transparent transparent;
          top: 30px;

          &:after {
            content: "";
            width: 0px;
            height: 0px;
            border-width: 15px 12px 15px 12px;
            border-style: solid;
            border-color: transparent transparent #5bab30 transparent;
            box-sizing: border-box;
            position: absolute;
            right: -24px;
            bottom: 0;
          }

          &:before {
            content: "";
            width: 0px;
            height: 0px;
            border-width: 15px 12px 15px 12px;
            border-style: solid;
            border-color: transparent transparent #5bab30 transparent;
            box-sizing: border-box;
            position: absolute;
            left: -24px;
            bottom: 0;
          }
        }
      }

      .part2 {
        top: 29px;
        z-index: 200;

        .top {
          border-color: #3c8b19 transparent transparent transparent;

          &:after {
            content: "";
            width: 0px;
            height: 0px;
            border-width: 15px 12px 15px 12px;
            border-style: solid;
            border-color: transparent transparent #5bab30 transparent;
            box-sizing: border-box;
            position: absolute;
            right: -24px;
            bottom: 0;
          }

          &:before {
            content: "";
            width: 0px;
            height: 0px;
            border-width: 15px 12px 15px 12px;
            border-style: solid;
            border-color: transparent transparent #5bab30 transparent;
            box-sizing: border-box;
            position: absolute;
            left: -24px;
            bottom: 0;
          }
        }

        .bottom {
          border-color: #a9d045 transparent transparent  transparent;
          bottom: -45px;
          right: -36px;

          &:after {
            content: "";
            width: 0px;
            height: 0px;
            border-width: 15px 12px 15px 12px;
            border-style: solid;
            border-color: transparent transparent #5bab30 transparent;
            box-sizing: border-box;
            position: absolute;
            right: -24px;
            bottom: 0;
          }

          &:before {
            content: "";
            width: 0px;
            height: 0px;
            border-width: 15px 12px 15px 12px;
            border-style: solid;
            border-color: transparent transparent #378918 transparent;
            box-sizing: border-box;
            position: absolute;
            left: -24px;
            bottom: 0;
          }
        }

        .bottom2 {
          border-color: #a9d045 transparent transparent  transparent;
          bottom: -45px;
          right: -12px;

          &:after {
            content: "";
            width: 0px;
            height: 0px;
            border-width: 15px 12px 15px 12px;
            border-style: solid;
            border-color: transparent transparent #5eab31 transparent;
            box-sizing: border-box;
            position: absolute;
            right: 0;
            bottom: 0;
          }
        }
      }

      .part3 {
        top: 44px;
        z-index: 100;

        .top {
          border-color: #3c8b19 transparent transparent transparent;

          &:after {
            content: "";
            width: 0px;
            height: 0px;
            border-width: 15px 12px 15px 12px;
            border-style: solid;
            border-color: transparent transparent #5bab30 transparent;
            box-sizing: border-box;
            position: absolute;
            right: -24px;
            bottom: 0;
          }

          &:before {
            content: "";
            width: 0px;
            height: 0px;
            border-width: 15px 12px 15px 12px;
            border-style: solid;
            border-color: transparent transparent #5bab30 transparent;
            box-sizing: border-box;
            position: absolute;
            left: -24px;
            bottom: 0;
          }
        }

        .bottom {
          border-color: #358915 transparent transparent  transparent;
          bottom: -45px;
          right: -36px;

          &:after {
            content: "";
            width: 0px;
            height: 0px;
            border-width: 15px 12px 15px 12px;
            border-style: solid;
            border-color: transparent transparent #358915 transparent;
            box-sizing: border-box;
            position: absolute;
            right: -24px;
            bottom: 0;
          }

          &:before {
            content: "";
            width: 0px;
            height: 0px;
            border-width: 15px 12px 15px 12px;
            border-style: solid;
            border-color: transparent transparent #abd048 transparent;
            box-sizing: border-box;
            position: absolute;
            left: -24px;
            bottom: 0;
          }
        }

        .bottom2 {
          border-color: #5ba831 transparent transparent  transparent;
          bottom: -45px;
          right: -12px;

          &:after {
            content: "";
            width: 0px;
            height: 0px;
            border-width: 15px 12px 15px 12px;
            border-style: solid;
            border-color: transparent transparent #a3cd3a transparent;
            box-sizing: border-box;
            position: absolute;
            right: 0;
            bottom: 0;
          }
        }

        .bottom3 {
          border-color: #5cac31 transparent transparent  transparent;
          bottom: -60px;
          right: -48px;

          &:after {
            content: "";
            width: 0px;
            height: 0px;
            border-width: 15px 12px 15px 12px;
            border-style: solid;
            border-color: transparent transparent #5bab30 transparent;
            box-sizing: border-box;
            position: absolute;
            right: -24px;
            bottom: 0;
          }

          &:before {
            content: "";
            width: 0px;
            height: 0px;
            border-width: 15px 12px 15px 12px;
            border-style: solid;
            border-color: transparent transparent #378918 transparent;
            box-sizing: border-box;
            position: absolute;
            left: -24px;
            bottom: 0;
          }
        }

        .bottom4 {
          border-color: #5aab32 transparent transparent  transparent;
          bottom: -60px;
          right: -24px;

          &:after {
            content: "";
            width: 0px;
            height: 0px;
            border-width: 15px 12px 15px 12px;
            border-style: solid;
            border-color: transparent transparent #a4cf37 transparent;
            box-sizing: border-box;
            position: absolute;
            right: 0;
            bottom: 0;
          }
        }

        .bottom5 {
          border-color: #58a72f transparent transparent  transparent;
          bottom: -60px;
          right: 0;

          &:after {
            content: "";
            width: 0px;
            height: 0px;
            border-width: 15px 12px 15px 12px;
            border-style: solid;
            border-color: transparent transparent #58a72f transparent;
            box-sizing: border-box;
            position: absolute;
            right: 0;
            bottom: 0;
          }
        }
      }
    }

    .base {
      width: 11px;
      height: 13px;
      background: #c99c71;
      position: absolute;
      bottom: 0;
      left: 32px;

      &:after {
        content: "";
        position: absolute;
        left: 11px;
        width: 11px;
        height: 13px;
        background: #736457;
      }
    }
  }

  .wolf {
    width: 142px;
    height: 80px;
    //border: 1px solid rgba(0,0,0,0.3);
    position: absolute;
    right: -7px;
    top: 117px;
    .transform(rotate(46deg) scale(.851));

    .tail {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: #ea6b22;
      position: absolute;
      right: 0;

      &:after {
        content: "";
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: #f7f6e2;
        position: absolute;
        right: 16px;
        top: -10px;
      }
    }

    .body {
      width: 71px;
      height: 28px;
      //border: 1px solid #000;
      position: absolute;
      left: 24px;
      z-index: 100;
      top: 39px;

      &:after {
        content: "";
        border: 18px solid #ea6d23;
        border-color: transparent #eb6b23 #eb6b23 transparent;
        position: absolute;
        left: -33px;
        top: -12px;
        .transform(rotate(-3deg));
      }

      .part {
        position: absolute;
        width: 0;
        height: 0;
        border: 12px solid #ea6d23;
        border-color: #ea6d23 #ea6d23 transparent transparent;
        transform-origin: bottom center;

        &:after {
          content: "";
          border: 12px solid #ea6d23;
          border-color: transparent transparent #f08c56 #f08c56;
          position: absolute;
          right: -12px;
          top: -12px;
        }
      }

      .part1 {
        right: 0;
        .transform(rotate(5deg));
      }

      .part2 {
        right: 24px;
        .transform(rotate(5deg));
        top: -2px;
      }

      .part3 {
        right: 43px;
        .transform(rotate(-6deg));
        top: -2px;
      }
    }

    .legs {
      position: absolute;
      width: 60px;
      height: 20px;
      //border: 1px solid red;
      bottom: -3px;
      left: 29px; 

      &:after {
        content: "";
        border: 10px solid #ea6d23;
        border-color: #eb6b23 transparent transparent #eb6b23;
        position: absolute;
        .transform(rotate(-3deg));
        top: -3px;
      }

      &:before {
        content: "";
        border: 10px solid #ea6d23;
        border-color: #eb6b23 #eb6b23 transparent transparent;
        position: absolute;
        .transform(rotate(-3deg));
        right: -5px;
        top: -3px;
      }
    }
  }

  .mini1 {
    right: 34px;
    top: 206px;
    .transform(rotate(77deg));
  }

  .mini2 {
    right: 35px;
    top: 245px;
    .transform(rotate(94deg) scale(.7));
  }

  .mini-tree {
    width: 36px;
    height: 25px;
    position: absolute;

    .tree {
      width: 30px;
      height: 17px;
      background: #4d3f3b;
      border-top-right-radius: 15px;
      border-top-left-radius: 15px;
      overflow: hidden;
      position: absolute;

      &:after {
        content: "";
        width: 24px;
        height: 24px;
        position: absolute;
        border-radius: 50%;
        background: #4d3f3b;
        border: 6px solid #79675b;
        box-sizing: border-box;
        top: 2px;
        left: 3px;
      }
    }

    .base {
      width: 8px;
      height: 8px;
      background: #eecdb5;
      position: absolute;
      top: 17px;
      left: 7px;

      &:after {
        content: "";
        width: 8px;
        height: 8px;
        background: #c7986c;
        position: absolute;
        left: 8px;
      }
    }
  }

  .leaf {
    width: 27px;
    height: 43px;
    position: absolute;
    top: 231px;
    .transform(rotate(-90deg));
    left: 59px;

    .base {
      width: 42px;
      height: 11px;
      background: #5caa31;
      border-bottom-left-radius: 20px;
      border-bottom-right-radius: 20px;
      position: absolute;

      span {
        position: absolute;
        border: 10px solid #ea6d23;
        border-color: transparent transparent #5caa31 transparent;
        transform-origin: bottom center;
        top: -16px;
        left: 0;

        &:after {
          content: "";
          position: absolute;
          border: 10px solid #ea6d23;
          border-color: transparent transparent #5caa31 transparent;
          transform-origin: bottom center;
          top: -10px;
          left: -1px;
        }

        &:before {
          content: "";
          position: absolute;
          border: 10px solid #ea6d23;
          border-color: transparent transparent #5caa31 transparent;
          transform-origin: bottom center;
          top: -10px;
          left: 10px;
        }
      }
    }
  }
}


              
            
!

JS

              
                /*
This is part of my front-end development practise. I'm practising since 213 days and counting :) my goal is to reach 300 days of continuous practise.

Design source: http://drbl.in/kSyv 

My website:
www.ishadeed.com

Follow Me on twitter: @shadeed9

*/
              
            
!
999px

Console