cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

            
              <div class="container">
  <div class="star">
      <div class="layer2">
          <div></div>
      </div>
    <div class="tree">
        <div class="branch">
            <div></div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
        </div>
        <div class="branch"><!--2-->
            <div></div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
        </div>
        <div class="branch"><!--3-->
            <div></div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
        </div>
        <div class="branch"><!--4-->
            <div></div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
        </div>
        
        <div class="branch"><!--5-->
            <div></div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
        </div>
      
        <div class="branch"><!--6-->
            <div></div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
        </div>
      
      <div class="branch"><!--7-->
            <div></div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
        </div>

         <div class="branch"><!--8-->
            <div></div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
        </div>
      
      <div class="branch"><!--9-->
            <div></div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
        </div>
      
      <div class="branch"><!--10-->
            <div></div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
        </div>
       
    </div>
     
</div>
<!-- tree stump -->
<div class='stump'></div>
</div>
<div class="snowFlakes"></div> 
  </body>

            
          
!
            
              body {
    background-color:  #1d1d1d;
    display: flex;
    justify-content: center;
  }
  
  @-webkit-keyframes rotation {
      from {
          -webkit-transform: rotateY(0);
          -moz-transform: rotateY(0);
          -ms-transform: rotateY(0);
          -o-transform: rotateY(0);
          transform: rotateY(0);
      }
      to {
          -webkit-transform: rotateY(360deg);
          -moz-transform: rotateY(360deg);
          -ms-transform: rotateY(360deg);
          -o-transform: rotateY(360deg);
          transform: rotateY(360deg);
        }
        }
      
  
  
  .container {
      
      font-size: 200%;
      padding: 50px 0 50px 120px;
      position: relative;
      -webkit-perspective: 800;
      -ms-perspective: 800;
      -moz-perspective: 800;
      -o-perspective: 800;
      perspective: 800;
  }
  
  
  .star {
    width: 0;
      height: 0;
      border-left: 15px solid transparent;
      border-right: 15px solid transparent;
      border-bottom: 25px solid gold;
      position: relative;
      padding-bottom:  8px;
       
    /* ------ glow effect --------- */
    border-radius: 30%;
    background-color: #f4f7a8;
    box-shadow:
          0 0 60px 30px #ffffff,  
          0 0 100px 60px #ff00ff, 
          0 0 140px 90px #00ffff; 
  } 
  
  .star:after {
    width: 0;
      height: 0;
      border-left: 15px solid transparent;
      border-right: 15px solid transparent;
      border-top: 20px solid #ffd700;
      position: absolute;
      content: "";
      top: 18px;
      left: -15px;
 }
  
  /* -------- tree -----------  */
  .tree {
      -webkit-animation: rotation 20s infinite linear;
      -moz-animation: rotation 20s infinite linear;
      -ms-animation: rotation 20s infinite linear;
      -o-animation: rotation 20s infinite linear;
      animation: rotation 20s infinite linear;

      -webkit-transform-style: preserve-3d;
      -moz-transform-style: preserve-3d;
      -ms-transform-style: preserve-3d;
      -o-transform-style: preserve-3d;
      transform-style: preserve-3d;
  }
  
  
  .branch:nth-child(2) {
      -webkit-transform: rotateY(22deg);
      -moz-transform: rotateY(22deg);
      -ms-transform: rotateY(22deg);
      -o-transform: rotateY(22deg);
      transform: rotateY(22deg);
  }
  
  .branch:nth-child(3) {
      -webkit-transform: rotateY(45deg);
      -moz-transform: rotateY(45deg);
      -ms-transform: rotateY(45deg);
      -o-transform: rotateY(45deg);
      transform: rotateY(45deg);
  }
  
  .branch:nth-child(4) {
      -webkit-transform: rotateY(67deg);
      -moz-transform: rotateY(67deg);
      -ms-transform: rotateY(67deg);
      -o-transform: rotateY(67deg);
      transform: rotateY(67deg);
  }
  
  .branch:nth-child(5) {
      -webkit-transform: rotateY(90deg);
      -moz-transform: rotateY(90deg);
      -ms-transform: rotateY(90deg);
      -o-transform: rotateY(90deg);
      transform: rotateY(90deg);
  }
  
  .branch:nth-child(6) {
      -webkit-transform: rotateY(112deg);
      -moz-transform: rotateY(112deg);
      -ms-transform: rotateY(112deg);
      -o-transform: rotateY(112deg);
      transform: rotateY(112deg);
  }
  
  .branch:nth-child(7) {
      -webkit-transform: rotateY(123deg);
      -moz-transform: rotateY(123deg);
      -ms-transform: rotateY(123deg);
      -o-transform: rotateY(123deg);
      transform: rotateY(123deg);
  }
  
  .branch:nth-child(8) {
      -webkit-transform: rotateY(135deg);
      -moz-transform: rotateY(135deg);
      -ms-transform: rotateY(135deg);
      -o-transform: rotateY(135deg);
      transform: rotateY(135deg);
  }
  
  .branch:nth-child(9) {
      -webkit-transform: rotateY(155deg);
      -moz-transform: rotateY(155deg);
      -ms-transform: rotateY(155deg);
      -o-transform: rotateY(155deg);
      transform: rotateY(155deg);
  }
  
   
  .branch > div {
      border: 1em solid transparent;
      content: "";
      height: 0;
      left: 50%;
      margin-left: -1em;
      position: absolute;
      top: 0;
      width: 0
  }
   
  .branch:nth-child(1) > div {
      border-bottom-color: #009900
  }
  
  .branch:nth-child(2) > div {
      border-bottom-color: #008800
  }
  
  .branch:nth-child(3) > div {
      border-bottom-color: #009400
  }
  
  .branch:nth-child(4) > div {
      border-bottom-color: #007700 
  }
  
  .branch:nth-child(5) > div {
      border-bottom-color:#006600
  }
  
  .branch:nth-child(6) > div {
      border-bottom-color: #005b00
  }
  
  .branch:nth-child(7) > div {
      border-bottom-color:#005100
  }
  
  .branch:nth-child(8) > div {
      border-bottom-color: #004700
  }
  
  .branch:nth-child(9) > div {
      border-bottom-color:  #003d00
  }
  
  .branch:nth-child(10) > div {
      border-bottom-color: #002d00
  }
  
  
  
  .branch > div:nth-child(2) {
      font-size: 1.5em
  }
  
  .branch > div:nth-child(3) {
      font-size: 2em
  }
  
  .branch > div:nth-child(4) {
      font-size: 2.5em
  }
  
  .branch > div:nth-child(5) {
      font-size: 3em
  }

  .branch > div:nth-child(6) {
    font-size: 3em
}

.branch > div:nth-child(7) {
    font-size: 3.5em
}

.branch > div:nth-child(8) {
    font-size: 3.5em
}

.branch > div:nth-child(9) {
    font-size: 3.5em
}

.branch > div:nth-child(10) {
    font-size: 4em
}


  /* ------- tree stump ----- */
  .stump {
    background-color: #562727;
    height: 50px;
    width: 20px;
    position: absolute;
    z-index: -1;
    top: 243px;
    left: 125px 
  }

/* -------- snowflakes ------- */
.snowFlakes {
    background-color: transparent;
    background-image:  url(http://frontntweaks.com/images/snowFlake.png);
    top: 0;left: 0;right: 0;bottom: 0;   
    margin-top: 0;
    position: absolute;
    -webkit-animation: snow 40s linear infinite;
    -moz-animation: snow 40s linear infinite;
    -ms-animation: snow 40s linear infinite;
    animation: snow 40s linear infinite;
	z-index: -2; 
}

/*------ movement -------*/

@keyframes snow { 
  from
    { background-position: 0 0, 0 0, 0 0 
  }

    to { background-position: 500px 1000px, 400px 400px, 300px 300px }
}

@-moz-keyframes snow { 
    from
    { background-position: 0 0, 0 0, 0 0 
  }

    to { background-position: 500px 1000px, 400px 400px, 300px 300px }
}

@-webkit-keyframes snow { 
  from
     { background-position: 0 0, 0 0, 0 0 }

    to {
        background-position: 500px 1000px, 400px 400px, 300px 300px;
    }
}

@-ms-keyframes snow { 
  from
     { background-position: 0px 0px, 0px 0px, 0px 0px }

    to { background-position: 500px 1000px, 400px 400px, 300px 300px }
}

  
  
  
            
          
!
999px
Loading ..................

Console