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="branch">
    
  <div class="branch branch4">
  
  <div class="leafwrapper leafa">
    <div class="twig"></div>
  <div class="leaf">
    <div class="midleaf"></div>
    
    <div class="midleaf4">
      <div class="zins"></div>
        <div class="zins zinsc"></div>
       <div class="zins zinsa"></div>
       <div class="zins zinsb"></div>
      
      <div class="zins4"></div>
       <div class="zins4 zinsd"></div>
       <div class="zins4 zinse"></div>
       <div class="zins4 zinsf"></div>
    </div>
  </div></div>
    
     <div class="leafwrapper leafb">
    <div class="twig"></div>
  <div class="leaf">
    <div class="midleaf"></div>
    
    <div class="midleaf4">
      <div class="zins"></div>
        <div class="zins zinsc"></div>
       <div class="zins zinsa"></div>
       <div class="zins zinsb"></div>
      
      <div class="zins4"></div>
       <div class="zins4 zinsd"></div>
       <div class="zins4 zinse"></div>
       <div class="zins4 zinsf"></div>
    </div>
  </div></div>
    
        <div class="leafwrapper leafc">
    <div class="twig"></div>
  <div class="leaf5">
   
    
    <div class="midleaf5">
      <div class="zins5"></div>
        <div class="zins5 zinsc5"></div>
       <div class="zins5 zinsa5"></div>
       <div class="zins5 zinsb5"></div>
      
      <div class="zins5 zins55"></div>
       <div class="zins5 zinsd5"></div>
       <div class="zins5 zinse5"></div>
       <div class="zins5 zinsf5"></div>
    </div>
  </div></div>
    
        <div class="leafwrapper leafd">
    <div class="twig"></div>
  <div class="leaf">
    <div class="midleaf"></div>
    
    <div class="midleaf4">
      <div class="zins"></div>
        <div class="zins zinsc"></div>
       <div class="zins zinsa"></div>
       <div class="zins zinsb"></div>
      
      <div class="zins4"></div>
       <div class="zins4 zinsd"></div>
       <div class="zins4 zinse"></div>
       <div class="zins4 zinsf"></div>
    </div>
  </div></div>
    
        <div class="leafwrapper leafe">
    <div class="twig"></div>
  <div class="leaf5">
  
    
    <div class="midleaf5">
      <div class="zins5"></div>
        <div class="zins5 zinsc5"></div>
       <div class="zins5 zinsa5"></div>
       <div class="zins5 zinsb5"></div>
      
      <div class="zins5 zins55"></div>
       <div class="zins5 zinsd5"></div>
       <div class="zins5 zinse5"></div>
       <div class="zins5 zinsf5"></div>
    </div>
  </div></div>
    
        <div class="leafwrapper leaff">
    <div class="twig"></div>
  <div class="leaf">
    <div class="midleaf"></div>
    
    <div class="midleaf4">
      <div class="zins"></div>
        <div class="zins zinsc"></div>
       <div class="zins zinsa"></div>
       <div class="zins zinsb"></div>
      
      <div class="zins4"></div>
       <div class="zins4 zinsd"></div>
       <div class="zins4 zinse"></div>
       <div class="zins4 zinsf"></div>
    </div>
  </div></div>
    
  </div>
      
      
  <div class="branch branch5">
         <div class="leafwrapper leafx">
    <div class="twig"></div>
  <div class="leaf">
      <div class="midleaf"></div>
    
    <div class="midleaf4">
      <div class="zins"></div>
        <div class="zins zinsc"></div>
       <div class="zins zinsa"></div>
       <div class="zins zinsb"></div>
      
      <div class="zins4"></div>
       <div class="zins4 zinsd"></div>
       <div class="zins4 zinse"></div>
       <div class="zins4 zinsf"></div>
    </div>
  </div></div>
      
        <div class="leafwrapper leafy">
    <div class="twig"></div>
  <div class="leaf5">
  
    
    <div class="midleaf5">
      <div class="zins5"></div>
        <div class="zins5 zinsc5"></div>
       <div class="zins5 zinsa5"></div>
       <div class="zins5 zinsb5"></div>
      
      <div class="zins5 zins55"></div>
       <div class="zins5 zinsd5"></div>
       <div class="zins5 zinse5"></div>
       <div class="zins5 zinsf5"></div>
    </div>
  </div></div>
      
      
         <div class="leafwrapper leafz">
    <div class="twig"></div>
  <div class="leaf">
      <div class="midleaf"></div>
    
    <div class="midleaf4">
      <div class="zins"></div>
        <div class="zins zinsc"></div>
       <div class="zins zinsa"></div>
       <div class="zins zinsb"></div>
      
      <div class="zins4"></div>
       <div class="zins4 zinsd"></div>
       <div class="zins4 zinse"></div>
       <div class="zins4 zinsf"></div>
    </div>
  </div></div>
    </div>
      
      
      
      
    
            <div class="leafwrapper leafg">
    <div class="twig"></div>
  <div class="leaf5">
  
    
    <div class="midleaf5">
      <div class="zins5"></div>
        <div class="zins5 zinsc5"></div>
       <div class="zins5 zinsa5"></div>
       <div class="zins5 zinsb5"></div>
      
      <div class="zins5 zins55"></div>
       <div class="zins5 zinsd5"></div>
       <div class="zins5 zinse5"></div>
       <div class="zins5 zinsf5"></div>
    </div>
  </div></div>
      
            <div class="leafwrapper leafi">
    <div class="twig"></div>
  <div class="leaf5">
  
    
    <div class="midleaf5">
      <div class="zins5"></div>
        <div class="zins5 zinsc5"></div>
       <div class="zins5 zinsa5"></div>
       <div class="zins5 zinsb5"></div>
      
      <div class="zins5 zins55"></div>
       <div class="zins5 zinsd5"></div>
       <div class="zins5 zinse5"></div>
       <div class="zins5 zinsf5"></div>
    </div>
  </div></div>
      
            <div class="leafwrapper leafj">
    <div class="twig"></div>
  <div class="leaf">
      <div class="midleaf"></div>
    
    <div class="midleaf4">
      <div class="zins"></div>
        <div class="zins zinsc"></div>
       <div class="zins zinsa"></div>
       <div class="zins zinsb"></div>
      
      <div class="zins4"></div>
       <div class="zins4 zinsd"></div>
       <div class="zins4 zinse"></div>
       <div class="zins4 zinsf"></div>
    </div>
  </div></div>
  </div>
              
            
!

CSS

              
                @import "compass/css3";


* {

  margin:0;
  padding:0;
}

html, body {
    height:1000px;
}

body {
 
  @include background-image(radial-gradient( #fff 0%, #001 100%));
 
}

.branch {
  
  position:absolute;
  left:30px;
  top:500px;
  width:400px;
  height:10px;
  background:#840;
  @include background-image(
    linear-gradient(to bottom, 
    #840 0%, #840 40%, #970 50%, #840 100%
    ));
  
  @include
  border-radius (
    50px 300px 300px 
    50px/50px 50px 50px 50px);
  
  @include 
  box-shadow(inset 0 2px 4px #f90,
    inset 0 1px #f74,
    inset 0 -1px #400,
    inset 0 -2px 5px #700);
  
  @include transform-origin(0, 50%);
  @include transform(rotate(-30deg));
}

.branch4 {
  left:50%;
  top:0;
  width:290px;
}

.branch5 {
  left:30%;
  top:0;
  @include transform(rotate(35deg));
  width:250px;
}

.leafwrapper {
  padding-left:50px;
  padding-bottom:10px;
  position:absolute;
}

.twig {
  position:absolute;
  width:55px;
  height:3px;
  left:0;
  bottom:10px;
  background:#050;
  
  @include transform-origin(100%,50%);
  @include transform(rotate(-11deg));
  
  @include box-shadow(0 -1px 0 1px  #efe,
    0 -2px 3px #040);
}

.leaf {
  background:#090;
  @include background-image(linear-gradient(160deg, #090 0%, #5a0 60%, #080 80%));
  
  width:200px;
  
  height:80px;
  position:relative;
  @include border-radius(200px 200px/100px 0px);
  
  @include box-shadow(inset 0 1px 1px green,
    inset 0 2px white, 
    inset 0 3px 2px white,
    inset 0 -1px #070,
    inset 0 -2px 3px #070,
    inset 0 -7px 15px  rgba(0,50,0,0.3));
  overflow:hidden;  
}

.midleaf {
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  padding:0 7px;
  height:100px;
  border-bottom:solid 1px white;
  border-bottom:solid 1px rgba(255,255,255,0.7);
  @include transform-origin(0,100%);
  @include transform(translateY(10px)
    rotate(-19deg));
  
  @include border-radius(200px 200px / 30px 30px);
  
  @include box-shadow(0 1px #4c4,
    0 2px 15px #070,
    0 2px rgba(0,50,0,0.3));
}


.midleaf4 {
  position:absolute;
  left:0;
  top:100%;
  height:1px;
  width:100%;
  padding:0 7px;
  background:transparent;
  @include transform-origin(0,0);
  @include transform(rotate(-21deg));
}

.zins {
  position:absolute;
  width:1px;
  height:40px;
  padding:8px 0;
  left:50%;
  bottom:-10px;
  background:white;
  background:rgba(255,255,255,0.4);
  
  @include transform-origin(0,100%);
  @include transform(rotate(50deg));
  
  @include box-shadow(1px 0 #4c4,
    2px 0 7px #050,
    -2px 1px 7px  #fff);
}

.zinsa {
  left:35%;
  @include transform(rotate(45deg));
  bottom:-7px;
}

.zinsb {
  left:20%;
  @include transform(rotate(40deg));
  bottom:-4px;
  padding:5px 0;
}

.zinsc {
  left:65%;
  @include transform(rotate(60deg));
  padding:5px 0;
}

.zins4 {
  position:absolute;
  width:1px;
  height:30px;
  left:50%;
  top:15px;
  background:white;
  background:rgba(255,255,255,0.4);
  
  @include transform-origin(0,0);
  @include transform(rotate(-60deg));
  
  @include box-shadow( -1px 0 #595,
    -2px 1px 9px #484,
    1px 1px #797,
    2px 0 7px #9e9);
}

.zinsd {
  left:37%;
  @include transform(rotate(-50deg));
  height:20px;
}

.zinse {
  left:20%;
  top:10px;
  @include transform(rotate(-40deg));
  height:9px;
}

.zinsf {
  left:65%;
  @include transform(rotate(-75deg));
  height:40px;
}


.leaf5 {
  position:relative;
  width:200px;
  height:80px;
  background:#090;
  @include background-image(
    linear-gradient(-40deg,
    #090 0%, #090 40%, #7e7 50%,#090 55%, #090 100%));
  @include border-radius(200px 0/ 100px 0);
  overflow:hidden;
  
  @include box-shadow(inset 0 1px #7f7,
    inset 0 1px 5px #fff,
    inset -5px 5px 25px 5px rgba(255,255,255,0.7),
    inset 25px -10px 25px rgba(0,30,0,0.4),
    inset 0 -2px #090,
    inset 0 -3px 10px rgba(255,0,0,0.4))
}

.midleaf5 {
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  height:1px;
  background:white;
  background:rgba(255,255,255,0.4);  
  @include transform-origin(0,0);
  @include transform(rotate(-21deg));
  padding-right:10px;
  @include box-shadow(0 1px 3px #7a7,
    0 -1px 3px #afa);
}

.zins5 {
  position:absolute;
  bottom:100%;
  left:50%;
  height:45px;
  width:1px;
  background:white;
  background:rgba(255,255,255,0.4);
  @include transform-origin(0,100%);
  @include transform(rotate(50deg));
  @include box-shadow(1px 0 7px #9f9,
    -1px 0 7px #373);
}

.zinsa5 {
  left:35%;
  @include transform(rotate(40deg))
}

.zinsb5 {
  left:20%;
  @include transform(rotate(35deg));
}

.zinsc5 {
  left:65%;
  @include transform(rotate(60deg));
}

.zins55, .zinsd5, .zinse5, .zinsf5 { 
  bottom:auto;
  top:0;
  @include transform-origin(0,0);
}

.zins55 {
  @include transform(rotate(-50deg));
  height:50px;
}

.zinsd5 {

  left:35%;
  @include transform(rotate(-45deg));
}

.zinse5 {
  left:20%;
 
  @include transform(rotate(-45deg));
  
}

.zinsf5 {

  left:65%; 
  @include transform(rotate(-60deg));
  height:50px;
}



.leafa, .leafb, .leafc {
  bottom:0;
  margin-bottom:-2px;
  left:30%;
  
  @include transform-origin(0,100%);  
}

.leafa {
  @include transform(rotate(-30deg));
}

.leafb {
  @include transform(rotate(-60deg) scale(0.9));
}

.leafc {
  @include transform(rotate(-5deg) scale(0.9));
}

.leafd, .leafe, .leaff {
    bottom:50%;
    left:100%;
    margin-left:-2px;
   @include transform-origin(0,100%);
}

.leafd {
  @include transform(rotate(-30deg) scale(0.6));  
}

.leafe {
  @include transform(scale(0.6));
}

.leaff {
  @include transform(rotate(30deg) scale(0.6));
}

.leafg, .leafi, .leafj, .leafx, .leafy, .leafz {
   left:100%;
   bottom:50%;
   margin-left:-3px;
   @include transform-origin(0, 100%);
}

.leafi {
  @include transform(rotate(30deg));
}

.leafj {
  @include transform(rotate(70deg));
}

.leafx {
  @include transform(rotate(-30deg) scale(0.75));
}

.leafy {
  @include transform(scale(1.2));
}

.leafz {
  @include transform(rotate(25deg));
}









              
            
!

JS

              
                
              
            
!
999px

Console