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 includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

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

Visit your global Editor Settings.

HTML

              
                <div id="clouds"></div>
<div id="clouds2"></div>

<div id="weather">
  <div class="panelLeft">
    <div class="top">
      <p>MARCH 14, 2016</p>
    </div>
    <img src="http://img13.deviantart.net/b5ed/i/2013/033/d/0/cloud_fog_by_moonglowlilly-d5tk3l7.png" alt="" />
    <div class="bottom">
      <div class="temp">
        <p>24°</p>
        <p>New York</p>
      </div>
    </div>
  </div>
  <div class="panelRight">
    <div class="customHeight">
        <p>Statistics</p>
        <hr/>
      <ul>
        <li>
          <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 32 32" style="fill: #ffffff;" xml:space="preserve">
<g style="fill: #ffffff;">
	<g style="fill: #ffffff;">
		<path style="fill: #ffffff;" d="M20,21.527V4.006C20,1.793,18.205,0,16,0c-2.209,0-4,1.787-4,4.006v17.521    c-1.228,1.099-2,2.696-2,4.473c0,3.312,2.687,6,6,6c3.312,0,6-2.688,6-6C22,24.223,21.229,22.626,20,21.527z M16,30    c-2.209,0-4-1.791-4-4c0-1.48,0.805-2.773,2-3.465V4.005C14,2.897,14.896,2,16,2c1.111,0,2,0.897,2,2.005v18.53    c1.195,0.691,2,1.984,2,3.465C20,28.209,18.209,30,16,30z"></path>
		<path style="fill: #ffffff;" d="M17,23.171V7.993C17,7.444,16.557,7,16,7c-0.553,0-1,0.445-1,0.993v15.178    c-1.165,0.411-2,1.522-2,2.829c0,1.657,1.343,3,3,3s3-1.343,3-3C19,24.693,18.165,23.582,17,23.171z"></path>
	</g>
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
</svg>
          <p>35%</p>
        </li>
        <li>
          <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 28 28" style="fill: #ffffff;" xml:space="preserve">
<g style="fill: #ffffff;">
	<g style="fill: #ffffff;">
		<path style="fill: #ffffff;" d="M14,0C6.268,0,0,6.268,0,14s6.268,14,14,14s14-6.268,14-14S21.732,0,14,0z M14,26    C7.373,26,2,20.627,2,14S7.373,2,14,2s12,5.373,12,12S20.627,26,14,26z"></path>
		<path style="fill: #ffffff;" d="M6.222,21.777c0,0,8.838-3.183,10.606-4.949c1.768-1.768,4.949-10.606,4.949-10.606    s-8.838,3.183-10.605,4.95S6.222,21.777,6.222,21.777z M12.586,12.586l2.828,2.828c0.707,0.707-6.363,3.535-6.363,3.535    S11.879,11.879,12.586,12.586z"></path>
	</g>
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
</svg>
          <p>Easterly</p>
        </li>
        <li>
          <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 300 300" style="fill: #ffffff;" xml:space="preserve">
<g style="fill: #ffffff;">
	<g style="fill: #ffffff;">
		<g style="fill: #ffffff;">
			<path style="fill: #ffffff;" d="M287.166,100.421c-9.502-13.217-24.046-23.034-39.868-26.945     c-5.309-1.365-10.845-2.061-16.453-2.061c-11.531,0-22.257,3.035-30.981,8.746c-14.076,8.86-23.709,23.91-25.759,40.157     c-2.698,16.644,4.357,34.315,17.519,43.959c7.555,5.716,17.47,8.991,27.201,8.991c7.332,0,14.109-1.811,19.575-5.216     c14.936-8.991,21.495-28.577,14.626-43.665c-3.525-7.669-10.427-13.647-18.455-15.975c-2.361-0.696-4.754-1.082-7.131-1.164     l-0.288,5.434c1.974,0.141,3.916,0.544,5.782,1.202c6.288,2.143,11.536,7.093,14.044,13.288c1.256,2.975,1.893,6.211,1.822,9.355     c-0.071,3.421-0.658,6.565-1.855,9.861c-2.366,6.222-6.967,11.667-12.678,14.968c-10.269,6.233-26.624,4.329-37.171-4.172     c-10.405-8.278-15.529-21.87-13.364-35.528c1.8-13.413,9.85-25.71,21.56-32.912c5.553-3.514,12.069-5.803,18.868-6.636     c2.823-0.359,6.619-0.413,10.285-0.131c3.497,0.31,7.033,0.903,10.231,1.713c13.358,3.437,25.623,11.863,33.668,23.154     c8.365,11.324,12.325,24.96,11.438,39.477c-0.587,14.098-5.423,28.305-13.619,40.021c-8.159,11.759-19.907,21.354-33.108,27.027     c-6.059,2.654-13.07,4.574-20.832,5.695c-4.803,0.68-9.959,0.8-16.203,0.892l-176.09,2.339l-29.817,1.164l0.109,5.439     l199.015,0.131c2.295,0,4.596,0,6.88,0.022l4.253,0.027c3.835,0,8.376-0.071,12.988-0.593c8.36-1.033,16.263-3.111,23.464-6.168     c14.925-6.206,28.283-16.905,37.606-30.127c9.426-13.206,15.072-29.36,15.893-45.438     C301.476,130.293,296.679,113.399,287.166,100.421z"></path>
		</g>
		<g style="fill: #ffffff;">
			<path style="fill: #ffffff;" d="M106.617,209.839c0.664-0.027,1.463-0.038,2.23-0.038l5.445,0.065     c1.528,0.027,2.959,0.049,4.395,0.049c2.801,0,6.511-0.076,10.438-0.647c7.626-1.246,14.849-4.471,20.864-9.312     c12.374-9.752,18.874-25.999,16.562-41.391c-2.371-15.648-15.953-28.697-31.547-30.35c-8.539-1.05-16.421,0.979-22.404,5.619     c-6.451,4.824-10.688,12.091-11.612,19.842c-1.229,8.077,1.806,16.589,7.664,21.637c5.803,5.287,15.431,7.43,22.387,5.037     c5.102-1.702,9.42-5.798,11.563-10.971l-4.928-2.284c-1.817,3.519-5.096,6.124-8.762,6.957c-1.218,0.277-2.317,0.408-3.367,0.408     c-4.329,0-8.762-1.866-11.591-4.89c-3.835-4.003-5.249-9.11-4.096-14.762c1.044-5.08,4.308-10.106,8.496-13.124     c4.449-3.176,9.284-4.286,15.349-3.405c11.123,1.441,20.603,10.943,22.077,22.229c1.996,11.335-2.877,24.013-12.173,31.585     c-4.585,3.867-10.193,6.494-16.236,7.604c-2.469,0.479-4.922,0.571-7.647,0.642l-104.506,2.752     C10.264,203.524,5.134,203.9,0,204.275l0.19,5.434L106.617,209.839z"></path>
		</g>
	</g>
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
<g style="fill: #ffffff;">
</g>
</svg>
          <p>7 mph</p>
        </li>
      </ul>
    </div>
    <div class="remainingHeight">
      <ul class="inline">
        <li class="active">Today</li>
        <li>Week</li>
      </ul>
      <ul class="forecast">
        <li>
          <span class="time">Now</span>
          <span class="temp">24°C</span>
          <span class="conditions">Cloudy</span>
        </li>
        <li>
          <span class="time">6 AM</span>
          <span class="temp">23°C</span>
          <span class="conditions">Cloudy</span>
        </li>
        <li>
          <span class="time">6:59 AM</span>
          <span class="temp">Sunrise</span>
          <span class="conditions">Cloudy</span>  
        </li>
        <li>
          <span class="time">7 AM</span>
          <span class="temp">24°C</span>
          <span class="conditions">Partly Cloudy</span>   
        </li>
      </ul>
    </div>
  </div>
</div>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Montserrat:400,700);
@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,300,700,200);
@import url(https://fonts.googleapis.com/css?family=Varela+Round);

$min-height:570px;

*{
  box-sizing:border-box;
}

body{
 overflow-x:hidden; background:url(https://andreacorda.files.wordpress.com/2015/07/skyline.jpg);
  background-size:cover;
  background-repeat:no-repeat;
  background-position:center center;
  width:100vw;
  height:100vh;
}

.bottom{
  position:absolute;
  bottom:0;
  width:100%;
}

.top{
  top:0;
  position:absolute;
  width:100%;
}

#clouds{
 background:url(http://pngimg.com/upload/cloud_PNG24.png);
  background-size:100% 300px;
  width:100%;
  height:300px;
  position:absolute;
  z-index:5;
  animation:moveClouds 30s infinite linear;
  transform:translateX(-100%);
}
#clouds2{
 background:url(http://pngimg.com/upload/cloud_PNG24.png);
  background-size:100% 300px;
  width:100%;
  height:300px;
  position:absolute;
  top:150px;
  z-index:5;
  animation:30s linear 10s infinite moveClouds;
  transform:translateX(-100%);
}

@keyframes moveClouds{
  from{
    transform:translateX(100%);
  }
  to{
    transform:translateX(-100%);
  }
}

#weather{
  z-index:10;
  width:75%;
  height:80%;
  min-width:600px;
  min-height:$min-height;
  margin: 5% auto;
  position:relative;
  .panelLeft,
  .panelRight{
    width:50%;
    height:100%;
    min-height:$min-height;
    display:inline-block;
    box-sizing:border-box;
    margin:0;
    padding:0;
    position:relative;
  }
  .panelLeft{
    background:linear-gradient(to right,hsla(195,100%,20%,.6),hsla(300,100%,40%,.4));
    background-blend-mode:overlay;
    img{
      width:400px;
      height:auto;
      position:absolute;
      top:calc(50% - 200px);
      left:-50px;
    }
    .top{
      p{
        font-family:"Source Sans Pro",sans-serif;
        color:rgba(white,.6);
        text-align:right;
        width:100%;
        right:0;
        padding-right:10px;
      }
    }
    .bottom{
      .temp{
        padding-left:30px;
        padding-bottom:20px;
        p{
          font-family:"Varela Round",sans-serif;
          color:rgba(white,.8);
          &:first-child{
            font-size:8rem;
            margin-bottom:-35px;
          }
          &:nth-child(2){
            font-family:"Source Sans Pro",sans-serif;
            font-weight:300;
            padding-left:8px;
          }
        }
        
      }
    }
  }
  .panelRight{
    float:right;
    &:after,
    &:before{
      clear:both;
    }
    &>*{
      padding:15px 30px;
    }
    .customHeight{
      height:35%;
      min-height:200px;
      width:100%;
      background:rgba(50,170,250,0.9);
      color:rgba(white,0.7);
      ul{
        list-style:none;
        padding:0;
        margin:20px 0 0;
        li{
          display:inline-block;
          width: 32%;
          p{
            text-align:center;
            font-size:.8rem;
            font-family:"Source Sans Pro",sans-serif;
            font-weight:400;
          }
          svg{
            width:35px;
            height:35px;
            margin: 0 auto;
            display:block;
          }
        }
      }
      p{
        font-family:"Montserrat",sans-serif;
      }
      hr{
        background:rgba(white,0.4);
        height:1px;
        border:transparent;
      }
    }
    .remainingHeight{
      height: 65%;
      min-height: $min-height - 200px;
      background:rgba(white,0.9);
      ul.inline{
        border-bottom: 1px solid rgba(#ccc,0.8);
        list-style:none;
        padding:0;
        li{
          color:#aaa;
          font-family:"Montserrat",sans-serif;
          display:inline-block;
          padding-bottom: 20px;
          margin-right:20px;
          position:relative;
          text-align:center;
          transition: .5s all;
          &:after{
            height:1px;
            background:transparent;
            display:block;
            content:"";
            width:100%;
            position:absolute;
            bottom:-1px;
            transition: .5s all;
          }
          &.active,
          &:hover{
            color:rgba(black,0.9);
            &:after{
              background:tomato;
            }
          }
        }
      }
      ul.forecast{
        list-style:none;
        padding:0;
        margin:0;
        li{
          min-height:60px;
          width:100%;
          font-family:"Montserrat",sans-serif;
          position:relative;
          //border:1px solid red;
          padding-top:18px;
          .time{
            float:left;
            color:rgba(#888,0.9);
            font-family:"Varela Round",sans-serif;
          }
          .temp{
            float:right;
            right:0;
            position:absolute;
            top:10px;
            font-family:"Varela Round",sans-serif;
          }
          .conditions{
            float:right;
            color:rgba(#aaa,0.9);
            float:right;
            font-size:0.8rem;
            right:0;
            position:absolute;
            top:28px;
          }
        }
      }
    }
  }
}

              
            
!

JS

              
                /*No js here 😀*/
              
            
!
999px

Console