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.

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.

            
              .windmill
  .hills
  .wheel
    .windwheel
    .windwheel.windwheel2
    .windwheel.windwheel3
    .windwheel.windwheel4
  .roof
  .mill
  .house
  ul.tree
    li
    li
    li
  ul.bush
    li
    li
    li
  ul.bush.bush2
    li
    li
  .cloud
  .cloud.cloud2
  
            
          
!
            
              $wheel: #153d5a;
$roof: #5cdfdd;
$roofLight: #acdced;
$mill: #fff;

body {
  background-color: #eee;
}

.windmill {
  position: absolute;
  left: 40%;
  top: 30%;
}

.hills {
  width: 280px;
  height: 180px;
  background-color: $roofLight;
  position: absolute;
  top: 64px;
  left: -110px;
  opacity: 0.5;
  border-radius: 300px 300px 0 0;
  &:before, &:after {
    content: '';
    position: absolute;
    background-color: $roofLight;
    border-radius: 300px 300px 0 0;
  }
  &:before {
    width: 250px;
    height: 110px;
    bottom: 0;
    right: -120px;
  }
}

.wheel {
  z-index: 10;
  width: 192px;
  height: 192px;
  position: absolute;
  left: 8px;
  top: 10px;
 animation: spin 15s linear infinite;
}

.windwheel {
  position: absolute;
  width: 8px;
  height: 100px;
  background-color: $wheel;
  margin-right: 10px;
  left: 92px;
  &:before {
    positioN: absolute;
    content: "";
    background-color: $wheel;
    opacity: 0.7;
    width: 15px;
    height: 75px;
    left: 8px;
  }
}

.windwheel2 {
  transform: rotate(90deg);
  top: 46px;
  left: 138px;
  z-index: 40;
}

.windwheel3 {
  transform: rotate(180deg);
  top: 92px;
}

.windwheel4 {
  transform: rotate(-90deg);
  top: 46px;
  left: 46px;
  &:after {
    position: absolute;
    content: "";
    background-color: $wheel;
    opacity: 0.7;
    width: 22px;
    height: 22px;
    bottom: -7px;
    left: -7px;
    transform: rotate(45deg);
  }
}

.roof {
  position: absolute;
  z-index: 9;
  left: 52px;
  top: 55px;
  width: 0; 
  height: 0; 
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 70px solid $roof;
}

.mill {
  position: absolute;
  left: 52px;
  top: 124px;
  width: 100px;
  height: 120px;
  background-color: $mill;
  &:after {
    position: absolute;
    content: "";
    background-color: $wheel;
    height: 50px;
    width: 40px;
    bottom: 0;
    left: 28px;
    border-radius: 40% 40% 0 0;
    border-left: 5px solid $roofLight;
  }
  &:before {
    position: absolute;
    content: "";
    background-color: $wheel;
    height: 40px;
    width: 30px;
    top: 20px;
    left: 32px;
    border-radius: 18px;
    border-left: 5px solid $roofLight;
  }
}
.house {
  position: absolute;
  width: 80px;
  height: 60px;
  background-color: $mill;
  top: 164px;
  left: 152px;
  border-top: 20px solid $roof;
  &:after {
    content: "";
    position: absolute;
    background-color: $wheel;
    width: 20px;
    height: 30px;
    bottom: 0;
    left: 30px;
    border-left: 5px solid $roofLight;
  }
}
.bush {
  position: relative;
  top: 203px;
  left: -60px;
}
.bush li {
  float: left;
  list-style: none;
  background-color: $roof;
  width: 40px;
  height: 25px;
  border-radius: 100px 100px 0 0
}

.bush2 {
  top: 178px;
  left: 160px;
}

.tree {
  position: absolute;
  left: -50px;
  top: 120px;
  li {
    list-style: none;
    background-color: $wheel;
    width: 45px;
    height: 45px;
    border-radius: 100%;
    margin-bottom: -15px;
  }
  &:after {
    content: "";
    position: absolute;
    background-color: $roofLight;
    width: 3px;
    height: 80px;
    top: 25px;
    right: 21px;
  }
}

.cloud {
  position: absolute;
  top: 40px;
  left: -100px;
  background-color: #fff;
  height: 20px;
  width: 40px;
  z-index: 1000;
  border-radius: 40px 40px 0 0;
  opacity: 0.7;
  animation: clouds 14s linear alternate infinite;
  &:before {
    content: "";
    position: absolute;
    background-color: #fff;
    height: 30px;
    width: 60px;
    border-radius: 60px 60px 0 0;
    bottom: 0;
    right: 20px;
  }
}

.cloud2{
  height: 40px;
  width: 80px;
  top: -20px;
  z-index: 1;
  animation: clouds 24s linear alternate-reverse infinite;
  &:before{
    content: "";
    position: absolute;
    background-color: #fff;
    height: 30px;
    width: 60px;
    border-radius: 60px 60px 0 0;
    bottom: 0;
    right: 40px;
  }
}

// animations
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes clouds {
  100% {
    transform: translateX(340px);
  }
}
            
          
!
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.

Console