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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

            
              .xmas
  each i in new Array(5)
    .xmas-row
      each i in new Array(10)
        .xmas-tree
          each i in new Array(2)
            .xmas-tree_branch
    .xmas-row
      each i in new Array(10)
        .xmas-pine
          each i in new Array(2)
            .xmas-pine_branch
h1.h1 Merry Little Christmas
            
          
!
            
              body {
  background-color: LightSalmon;
  margin: 0;
  overflow: hidden;
}

.h1 {
  color: PapayaWhip;
  font-family: 'Raleway', sans-serif;
  font-size: 1.3em;
  font-weight: normal;
  letter-spacing: 4px;
  text-align: center;
}

.xmas {
  box-sizing: border-box;
  box-shadow: 0 10px 25px 0 rgba(0,0,0,0.25);
  background-color: PapayaWhip;
  width: 715px;
  max-height: 480px;
  height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  padding: 30px;
  
  &-row {
    float: left;
    margin-top: -230px;

    &:not(:first-child) {
      margin-left: 30px;
    }

    &:nth-child(odd) {
      animation: snow 8s linear infinite;
    }
  }

  &-tree {
    margin-bottom: 20px;

    &_branch {
      animation: color 5s linear infinite;
      width: 25px;
      height: 25px;
      border-right: 2px solid LightSalmon;
      border-bottom: 2px solid MediumSeaGreen;
      margin: 5px;
      transform: rotate(-135deg);

      &:nth-child(even) {
        margin-top: -10px;
      }
    }
  }

  &-pine {
    margin-bottom: 30px;

    &_branch {
      animation: color 5s linear infinite;
      width: 0;
      height: 0;
      border-style: solid;
      border-width: 0 20px 25px 20px;
      border-color: transparent transparent MediumSeaGreen transparent;

      &:first-child {
        border-bottom-color: LightSalmon;
        position: relative;
        z-index: 10;
      }
      
      &:not(:first-child) {
        margin-top: -10px;
      }
    }
  }
}

@keyframes snow {
  100% {
    margin-top: -23px;
  }
}

@keyframes color {
  40%, 50% {
    border-bottom-color: MediumTurquoise;
  }
}
            
          
!
            
              /* 
 * PURE CSS PATTERN ILLUSTRATION
 * Inspired by a real christmas tapestry
 * Happy Holidays!!!
 * By ilithya | 2015
 */
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console