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.

Editor Settings

Code Indentation

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

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

              
                .box
  .logo
  .pot
  .pot-reflection
  .pot-top
  .stalk
  .stalk-detail
  .stalk-detail-2
  .stalk-detail-3
  .large-bottom-triangle
  .medium-middle-triangle-2
  .medium-middle-triangle
  .top-triangle
  
  .becky
  .katie
  .jax
  .marv
  .jackie
  .zz
  
  .star-shadow
  .star
  
   
              
            
!

CSS

              
                //colors
$background: linear-gradient(180deg, rgba(71,177,255,0.927608543417367) 9%, rgba(255,255,255,1) 42%);
$tree-top: #5E8364;
$tree-med-1: #4A7351;
$tree-med-2: #36643E;
$tree-bottom: #22552b;
$star: #ffe100;
$star-shadow: #D1B900;
$pink: #e01a4f;
$lime: #2BC016;
$purple: #B744B8;
$orange: #f15946;
$blue: #53b3cb;
$yellow: #F2FF49;
$pot: #720E07;
$dark-pot: #5E0C06;
$stalk: #7a4419;
$stalk-detail: #593213;
$detail: #A56561;

body {
  background: $background;
  background-repeat: no-repeat;
}

.box::before {
  position: absolute;
  content: 'Happy Christmas!'; 
  font-family: 'Cookie', cursive; 
  font-size: 42px;
  color: $pink;
  top: 50%;
  left: 95%;
  width: 20%;
  text-align: center;
}

.box {
  position: relative;
  display: block;
  margin: auto;
  margin-top: 5%;
  height: 700px;
  width: 600px;
}

.pot {
  background: $pot;
  position: absolute;
  height: 15%;
  width: 20%;
  bottom: 10%;
  left: 40%;
  transform: rotate(180deg);
  -webkit-clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
  clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
  border-top-left-radius: 38%;
  border-top-right-radius: 38%;
  box-shadow: 2px -20px 10px 10px #892E27 inset;
}

.pot-top {
  background: $dark-pot;
  position: absolute;
  height: 6%;
  width: 165%;
  bottom: 22%;
  left: -6.1%;
  -webkit-clip-path: ellipse(6% 21% at 34% 50%);
  clip-path: ellipse(6% 21% at 34% 50%);
  box-shadow: 7px -7px 5px 10px #240B06 inset;
}

.pot-reflection {
  background: $detail;
  position: absolute;
  height: 14%;
  width: 9%;
  bottom: 10%;
  left: 40%;
  transform: rotate(-13deg);
  -webkit-clip-path: ellipse(5% 40% at 50% 50%);
  clip-path: ellipse(5% 40% at 50% 50%);
  z-index: 1;
}

.stalk {
  position: absolute;
  background: $stalk;
  width: 8%;
  height: 10%;
  bottom: 24%;
  left: 46%;
}

.stalk-detail {
  position: absolute;
  background: $stalk-detail;
  width: 0.4%;
  height: 9%;
  bottom: 24%;
  left: 47%;
}

.stalk-detail-2 {
  position: absolute;
  background: $stalk-detail;
  width: 0.4%;
  height: 7%;
  bottom: 24%;
  left: 49%;
}

.stalk-detail-3 {
  position: absolute;
  background: $stalk-detail;
  width: 0.4%;
  height: 8%;
  bottom: 24%;
  left: 51%;
}

.star {
  position: absolute;
  background: $star;
  width: 10%;
  height: 10%;
  top: 6%;
  left: 45%;
  -webkit-clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: star 2s infinite;
}

.star-shadow {
  position: absolute;
  background: $star-shadow;
  width: 10%;
  height: 10%;
  top: 6%;
  left: 45.5%;
  transform: rotate(-2deg);
  -webkit-clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.top-triangle {
  position: absolute;
  background: $tree-top;
  width: 17%;
  height: 15%;
  top: 12%;
  left: 41.5%;
  -webkit-clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  border-radius: 10px;
}



.medium-middle-triangle {
  position: absolute;
  background: $tree-med-1;
  width: 28%;
  height: 20%;
  top: 20%;
  left: 36%;
  -webkit-clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  border-radius: 10px;
}

.medium-middle-triangle-2 {
  position: absolute;
  background: $tree-med-2;
  width: 40%;
  height: 25%;
  top: 29%;
  left: 30%;
  -webkit-clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  border-radius: 10px;
}

.large-bottom-triangle {
  position: absolute;
  background: $tree-bottom;
  width: 50%;
  height: 32%;
  top: 35%;
  left: 25%;
  -webkit-clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  border-radius: 35px;
}

.becky {
  position: absolute;
  background: url(https://github.com/katieraby/pure-css-christmas-tree/blob/master/becky.jpg?raw=true);
  background-position: center;
  height: 6%;
  width: 6%;
  top: 43%;
  left: 56%;
  border-radius: 50%;
  background-size: 42px 42px;
  animation: glow-6 0.8s infinite alternate;
  animation-delay: 0.8s;
}

.katie {
  position: absolute;
  background: url(https://github.com/katieraby/pure-css-christmas-tree/blob/master/katie.jpg?raw=true);
  background-position: center;
  height: 6%;
  width: 6%;
  top: 20%;
  left: 48.8%;
  border-radius: 50%;
  background-size: 42px 42px;
  animation: glow-1 1s infinite alternate;
}

.jax {
  position: absolute;
  background: url(https://github.com/katieraby/pure-css-christmas-tree/blob/master/jax.jpg?raw=true);
  background-position: center;
  height: 6%;
  width: 6%;
  top: 58%;
  left: 35%;
  border-radius: 50%;
  background-size: 42px 42px;
  animation-delay: 0.3s;
  animation: glow-5 0.9s infinite alternate;
}

.marv {
  position: absolute;
  background: url(https://github.com/katieraby/pure-css-christmas-tree/blob/master/marvin.jpg?raw=true);
  background-position: center;
  height: 6%;
  width: 6%;
  top: 30%;
  left: 44%;
  border-radius: 50%;
  background-size: 42px 42px;
  animation: glow-2 1s infinite alternate;
}

.jackie {
  position: absolute;
  background: url(https://github.com/katieraby/pure-css-christmas-tree/blob/master/jackie.jpg?raw=true);
  background-position: center;
  height: 6%;
  width: 6%;
  top: 47%;
  left: 43%;
  border-radius: 50%;
  background-size: 42px 42px;
  animation-delay: 1.6s;
  animation: glow-3 1.2s infinite alternate;
}

.zz {
  position: absolute;
  background: url(https://github.com/katieraby/pure-css-christmas-tree/blob/master/zarino.jpg?raw=true);
  background-position: center;
  height: 6%;
  width: 6%;
  top: 60%;
  left: 54%;
  border-radius: 50%;
  background-size: 42px 42px;
  animation-delay: 0.5s;
  animation: glow-4 0.7s infinite alternate;
}

.logo {
  position: absolute;
  background: url(https://secure.meetupstatic.com/photos/event/3/2/d/a/600_468853018.jpeg);
  background-size: 200px 200px;
  height: 200px;
  width: 200px;
  bottom: 5%;
  left: 90%;
}

@keyframes glow-1 {
  from {
    box-shadow: 0 0 7px 1px darken(pink, 30%);
  }
  to {
    box-shadow: 0 0 12px 10px pink;
  }
}

@keyframes glow-2 {
  from {
    box-shadow: 0 0 7px 1px darken($orange, 40%);
  }
  to {
    box-shadow: 0 0 12px 6px $orange;
  }
}

@keyframes glow-3 {
  from {
    box-shadow: 0 0 7px 3px darken($blue, 40%);
  }
  to {
    box-shadow: 0 0 15px 8px $blue;
  }
}

@keyframes glow-4 {
  from {
    box-shadow: 0 0 7px 2px darken($yellow, 40%);
  }
  to {
    box-shadow: 0 0 15px 4px $yellow;
  }
}

@keyframes glow-5 {
  from {
    box-shadow: 0 0 7px 3px darken($purple, 20%);
  }
  to {
    box-shadow: 0 0 15px 8px $purple;
  }
}

@keyframes glow-6 {
  from {
    box-shadow: 0 0 7px 3px darken($lime, 35%);
  }
  to {
    box-shadow: 0 0 15px 8px $lime;
  }
}

@keyframes star {
  50% {
    background: darken($star, 10%); 
  }
}
              
            
!

JS

              
                //using the JS snowstorm script!
              
            
!
999px

Console