css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

            
              <div class="container">
  <div class="sol"></div>
<ul class="cerros">
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
   <li></li>
</ul>
  <div class="techo"></div>
    <div class="grass"></div>
  <div class="casa">
  <div class="ventanita"></div>
  <div class="ventana"></div>
    <div class="ventana3"></div>
    <div class="door"></div>
  </div>
<div class="rocas">
  <div class="r1"></div>
  <div class="r2"></div>
  </div>
  <div class="lake">
   
<ul class="circ1">
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
</ul>
  <div class="agua1"></div>
 <ul class="circ2">
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
</ul>
  <div class="agua2"></div>
   <ul class="circ3">
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
</ul>
  <div class="agua3"></div>
   <ul class="circ4">
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
</ul>
  <div class="agua4"></div>
   <ul class="circ5">
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
</ul>
  <div class="agua5"></div>
  </div>
  </div>
            
          
!
            
              body{
  background:black;
}
.sol{
  position:absolute;
  width:90px;
  height:90px;
  border-radius:100%;
  background:#F4B369;
  margin:21px 152px
}
.container{
  position:relative;
  width:400px;
  height:300px;
  
background: rgb(100,171,229); 
background: -moz-linear-gradient(top,  rgba(100,171,229,1) 0%, rgba(206,163,182,1) 50%); 
background: -webkit-linear-gradient(top,  rgba(100,171,229,1) 0%,rgba(206,163,182,1) 50%); 
background: linear-gradient(to bottom,  rgba(100,171,229,1) 0%,rgba(206,163,182,1) 50%); 
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#64abe5', endColorstr='#cea3b6',GradientType=0 ); 
border:7px solid #ddd;
  margin:231px auto;
overflow:hidden;
}
.casa{
  position:absolute;
  width:60px;
  height:40px;
  background:#ccc;
  border-top:3px solid #b5bdc8;
  margin:132px 172px
}
.casa::before{
  content:"";
  position:absolute;
   width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 40px solid #ccc;
  margin:-43px 0
}
.techo{
  position:absolute;
   width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 50px solid #D35873;
  margin:83px 162px
}
.ventanita{
  position:absolute;
  width:16px;
  height:16px;
  border-radius:100%;
  background:#B4DCEA;
  border:1px solid #333;
  margin:-30px 21px
}
.ventanita::before{
  content:"";
  display:block;
  width:1px;
  height:16px;
  background:#333;
  margin:0 7px
}
.ventanita::after{
  content:"";
  display:block;
  width:16px;
  height:1px;
  background:#333;
  margin:-8px 0px
}
.ventana,.ventana3{
  position:absolute;
  width:12px;
  height:12px;
   background:#B4DCEA;
  border:1px solid #333;
 
}
.ventana{
   margin:5px 7px
}
.ventana3{
   margin:5px 35px
}
.ventana::before, .ventana3::before{
  content:"";
  position:absolute;
  width:1px;
  height:12px;
  background:#333;
  margin:0 6px
}
.door{
  position:absolute;
  width:17px;
  height:21px;
  background:#ddd;
  border:1px solid #333;
  margin:23px 19px
    
}
.door::before{
  content:"";
  position:absolute;
  width:5px;
  height:5px;
  border-radius:100%;
  background:#333;
  margin:7px 9px
}
.lake{
  position:absolute;
  margin:7px 0;
  
}
.grass{
  position:absolute;
  width:400px;
  height:21px;
  background: #994530;
  margin:162px 0
}

.r1,.r2{
  position:absolute;
  width:25px;
  height:21px;
  border-radius:100%;
  background:#682501;
 
}

.r1{ margin:162px 152px}
.r2{ margin:162px 221px}

.r1::before,.r2::before{
  content:"";
  position:absolute;
  width:25px;
  height:21px;
  border-radius:100%;
  background:#8E6A4A;
 
}
.r1::before{ margin:-3px -12px}
.r2::before{ margin:-3px 12px}

.r1::after, .r2::after{
  content:"";
  position:absolute;
  width:25px;
  height:21px;
  border-radius:100%;
  background:#682501;
  
}
.r1::after{margin:3px -21px}
.r2::after{margin:3px 21px}

ul.cerros{
  position:absolute;
  width:500px;
  height:231px;
  list-style:none;
  margin:50px -50px
}
ul.cerros li{
  display:inline-block;
   width: 0;
  height: 0;
  
}
ul.cerros li:nth-child(1){
  border-left: 90px solid transparent;
  border-right: 90px solid transparent;
  border-bottom: 112px solid #25514e;
  margin-left:-21px
}
ul.cerros li:nth-child(2){
   border-left: 70px solid transparent;
  border-right: 70px solid transparent;
  border-bottom: 90px solid #25514e;
  margin-left:-75px
}
ul.cerros li:nth-child(3){
  border-left: 90px solid transparent;
  border-right: 90px solid transparent;
  border-bottom: 112px solid #25514e;
  margin-left:-112px
}
ul.cerros li:nth-child(4){
   border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 70px solid #25514e;
  margin-left:-70px
}
ul.cerros li:nth-child(5){
   border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 90px solid #25514e;
  margin-left:-70px
}
ul.cerros li:nth-child(6){
   border-left: 90px solid transparent;
  border-right: 90px solid transparent;
  border-bottom: 90px solid #25514e;
  margin-left:-70px
}
ul.circ1,ul.circ2,ul.circ3,ul.circ4,ul.circ5{
  position:absolute;
  list-style:none;
  width:450px;
  height:50px;
 animation:go 7s alternate infinite;
}
ul.circ1{margin:155px -47px;}
ul.circ2{margin:162px -47px;}
ul.circ3{margin:170px -47px;}
ul.circ4{margin:179px -47px; }
ul.circ5{margin:187px -47px; }

ul.circ1 li,ul.circ2 li,ul.circ3 li,ul.circ4 li,ul.circ5 li{
  display:inline-block;
  width:35px;
  height:35px;
  border-radius:45%;
  
}

ul.circ1 li:nth-child(1),ul.circ2 li:nth-child(2),ul.circ3 li:nth-child(1),ul.circ4 li:nth-child(2),ul.circ5 li:nth-child(1){
  background:rgba(140,192,234, .9);
  margin:3px 0;
  animation:rot 3s linear infinite;
}
ul.circ1 li:nth-child(2),ul.circ2 li:nth-child(1),ul.circ3 li:nth-child(2),ul.circ4 li:nth-child(1),ul.circ5 li:nth-child(2){
  background:rgba(140,192,234, .7);
  margin:5px -7px;
   animation:rot3 2.1s linear  infinite;
}
ul.circ1 li:nth-child(3),ul.circ2 li:nth-child(4),ul.circ3 li:nth-child(3),ul.circ4 li:nth-child(4),ul.circ5 li:nth-child(3){
  background:rgba(140,192,234, .9);
  margin:3px -3px;
   animation:rot 2.1s linear infinite;
}
ul.circ1 li:nth-child(4),ul.circ2 li:nth-child(3),ul.circ3 li:nth-child(4),ul.circ4 li:nth-child(3),ul.circ5 li:nth-child(4){
  background:rgba(140,192,234, .5);
  margin:5px -7px;
   animation:rot3 2.1s linear infinite;
}
ul.circ1 li:nth-child(5),ul.circ2 li:nth-child(6),ul.circ3 li:nth-child(5),ul.circ4 li:nth-child(6),ul.circ5 li:nth-child(5){
  background:rgba(140,192,234, .9);
  margin:3px -3px;
   animation:rot 2.1s linear infinite;
}
ul.circ1 li:nth-child(6),ul.circ2 li:nth-child(5),ul.circ3 li:nth-child(6),ul.circ4 li:nth-child(5),ul.circ5 li:nth-child(6){
  background:rgba(140,192,234, .5);
  margin:5px -7px;
   animation:rot3 2.1s linear infinite;
}
ul.circ1 li:nth-child(7),ul.circ2 li:nth-child(8),ul.circ3 li:nth-child(7),ul.circ4 li:nth-child(8),ul.circ5 li:nth-child(7){
  background:rgba(140,192,234, .9);
  margin:3px -3px;
   animation:rot 2.1s linear infinite;
}
ul.circ1 li:nth-child(8),ul.circ2 li:nth-child(7),ul.circ3 li:nth-child(8),ul.circ4 li:nth-child(7),ul.circ5 li:nth-child(8){
  background:rgba(140,192,234, .7);
  margin:5px -7px;
   animation:rot3 2.1s linear  infinite;
}
ul.circ1 li:nth-child(9),ul.circ2 li:nth-child(10),ul.circ3 li:nth-child(9),ul.circ4 li:nth-child(10),ul.circ5 li:nth-child(9){
  background:rgba(140,192,234, .9);
  margin:3px -3px;
   animation:rot3 2.1s linear  infinite;
}
ul.circ1 li:nth-child(10),ul.circ2 li:nth-child(9),ul.circ3 li:nth-child(10),ul.circ4 li:nth-child(9),ul.circ5 li:nth-child(10){
  background:rgba(140,192,234, .5);
  margin:5px -7px;
   animation:rot3 2.1s linear infinite;
}
ul.circ1 li:nth-child(11),ul.circ2 li:nth-child(12),ul.circ3 li:nth-child(11),ul.circ4 li:nth-child(12),ul.circ5 li:nth-child(11){
  background:rgba(140,192,234, .7);
  margin:3px -3px;
   animation:rot3 2.1s linear  infinite;
}
ul.circ1 li:nth-child(12),ul.circ2 li:nth-child(11),ul.circ3 li:nth-child(12),ul.circ4 li:nth-child(11),ul.circ5 li:nth-child(12){
  background:rgba(140,192,234, .5);
  margin:5px -7px;
   animation:rot3 2.1s linear  infinite;
}
ul.circ1 li:nth-child(13),ul.circ2 li:nth-child(14),ul.circ3 li:nth-child(13),ul.circ4 li:nth-child(14),ul.circ5 li:nth-child(13){
  background:rgba(140,192,234, .9);
  margin:3px -3px;
   animation:rot3 2.1s linear infinite;
}
ul.circ1 li:nth-child(14),ul.circ2 li:nth-child(13),ul.circ3 li:nth-child(14),ul.circ4 li:nth-child(13),ul.circ5 li:nth-child(14){
  background:rgba(140,192,234, .7);
  margin:5px -7px;
   animation:rot3 2.1s linear  infinite;
}

.agua1,.agua2,.agua3,.agua4{
  position:absolute;
  width:400px;
  height:25px;
 background: #4CBCDB;
 
}
.agua5{
  position:absolute;
  width:400px;
  height:90px;
  border-top:7px solid #379973;
   background: #46C49C;
}
.agua1{margin:172px 0}
.agua2{margin:182px 0}
.agua3{margin:192px 0}
.agua4{margin:225px 0}
.agua5{margin:212px 0}

@keyframes rot{
  0%{transform:rotate(0deg)  }
  100%{transform:rotate(360deg)  }
}

@keyframes rot3{
  0%{transform:rotate(0deg)  }
  100%{transform:rotate(-360deg) }
}

@keyframes go{
  0%{transform:translatex(-3px)}
  100%{transform:translatex(3px)}
}
            
          
!
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