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 class="body">
  
</div>
<div class="box">
  <span class="country">Hawaii</span> <span class="city">Honolulu |&nbsp;</span>
  <div class="date">Tuesday, 6 August</div>
  <div class="weather-icon">
     <?xml version="1.0" ?><!DOCTYPE svg  PUBLIC '-//W3C//DTD SVG 1.1//EN'  'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'><svg enable-background="new 0 0 5 512" height="80px" id="Layer_1" version="1.1" viewBox="0 0 512 512" width="80px" x="0px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" y="0px"><g><g><path d="M256,144c-61.75,0-112,50.25-112,112s50.25,112,112,112s112-50.25,112-112S317.75,144,256,144z M256,336    c-44.188,0-80-35.812-80-80c0-44.188,35.812-80,80-80c44.188,0,80,35.812,80,80C336,300.188,300.188,336,256,336z M256,112    c8.833,0,16-7.167,16-16V64c0-8.833-7.167-16-16-16s-16,7.167-16,16v32C240,104.833,247.167,112,256,112z M256,400    c-8.833,0-16,7.167-16,16v32c0,8.833,7.167,16,16,16s16-7.167,16-16v-32C272,407.167,264.833,400,256,400z M380.438,154.167    l22.625-22.625c6.25-6.25,6.25-16.375,0-22.625s-16.375-6.25-22.625,0l-22.625,22.625c-6.25,6.25-6.25,16.375,0,22.625    S374.188,160.417,380.438,154.167z M131.562,357.834l-22.625,22.625c-6.25,6.249-6.25,16.374,0,22.624s16.375,6.25,22.625,0    l22.625-22.624c6.25-6.271,6.25-16.376,0-22.625C147.938,351.583,137.812,351.562,131.562,357.834z M112,256    c0-8.833-7.167-16-16-16H64c-8.833,0-16,7.167-16,16s7.167,16,16,16h32C104.833,272,112,264.833,112,256z M448,240h-32    c-8.833,0-16,7.167-16,16s7.167,16,16,16h32c8.833,0,16-7.167,16-16S456.833,240,448,240z M131.541,154.167    c6.251,6.25,16.376,6.25,22.625,0c6.251-6.25,6.251-16.375,0-22.625l-22.625-22.625c-6.25-6.25-16.374-6.25-22.625,0    c-6.25,6.25-6.25,16.375,0,22.625L131.541,154.167z M380.459,357.812c-6.271-6.25-16.376-6.25-22.625,0    c-6.251,6.25-6.271,16.375,0,22.625l22.625,22.625c6.249,6.25,16.374,6.25,22.624,0s6.25-16.375,0-22.625L380.459,357.812z" fill="#fff"/></g></g></svg>
  </div>
  <div class="tmp">
    27&deg;C / <span class="min-tmp">15&deg;C</span>
  </div>
  <div class="wind">
    5 km / h
  </div>
  <div class="bottom">
    <ul>
       <li>
         <div>TUE</div>
         <?xml version="1.0" ?><!DOCTYPE svg  PUBLIC '-//W3C//DTD SVG 1.1//EN'  'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'><svg enable-background="new 0 0 5 512" height="40px" id="Layer_1" version="1.1" viewBox="0 0 512 512" width="40px" x="0px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" y="0px"><g><g><path d="M256,144c-61.75,0-112,50.25-112,112s50.25,112,112,112s112-50.25,112-112S317.75,144,256,144z M256,336    c-44.188,0-80-35.812-80-80c0-44.188,35.812-80,80-80c44.188,0,80,35.812,80,80C336,300.188,300.188,336,256,336z M256,112    c8.833,0,16-7.167,16-16V64c0-8.833-7.167-16-16-16s-16,7.167-16,16v32C240,104.833,247.167,112,256,112z M256,400    c-8.833,0-16,7.167-16,16v32c0,8.833,7.167,16,16,16s16-7.167,16-16v-32C272,407.167,264.833,400,256,400z M380.438,154.167    l22.625-22.625c6.25-6.25,6.25-16.375,0-22.625s-16.375-6.25-22.625,0l-22.625,22.625c-6.25,6.25-6.25,16.375,0,22.625    S374.188,160.417,380.438,154.167z M131.562,357.834l-22.625,22.625c-6.25,6.249-6.25,16.374,0,22.624s16.375,6.25,22.625,0    l22.625-22.624c6.25-6.271,6.25-16.376,0-22.625C147.938,351.583,137.812,351.562,131.562,357.834z M112,256    c0-8.833-7.167-16-16-16H64c-8.833,0-16,7.167-16,16s7.167,16,16,16h32C104.833,272,112,264.833,112,256z M448,240h-32    c-8.833,0-16,7.167-16,16s7.167,16,16,16h32c8.833,0,16-7.167,16-16S456.833,240,448,240z M131.541,154.167    c6.251,6.25,16.376,6.25,22.625,0c6.251-6.25,6.251-16.375,0-22.625l-22.625-22.625c-6.25-6.25-16.374-6.25-22.625,0    c-6.25,6.25-6.25,16.375,0,22.625L131.541,154.167z M380.459,357.812c-6.271-6.25-16.376-6.25-22.625,0    c-6.251,6.25-6.271,16.375,0,22.625l22.625,22.625c6.249,6.25,16.374,6.25,22.624,0s6.25-16.375,0-22.625L380.459,357.812z" fill="#fff"/></g></g></svg>
         <br>
           27&deg;C
      </li>
      <li>
         <div>WED</div>
         <?xml version="1.0" ?><!DOCTYPE svg  PUBLIC '-//W3C//DTD SVG 1.1//EN'  'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'><svg enable-background="new 0 0 5 512" height="40px" id="Layer_1" version="1.1" viewBox="0 0 512 512" width="40px" x="0px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" y="0px"><g><g><path d="M256,144c-61.75,0-112,50.25-112,112s50.25,112,112,112s112-50.25,112-112S317.75,144,256,144z M256,336    c-44.188,0-80-35.812-80-80c0-44.188,35.812-80,80-80c44.188,0,80,35.812,80,80C336,300.188,300.188,336,256,336z M256,112    c8.833,0,16-7.167,16-16V64c0-8.833-7.167-16-16-16s-16,7.167-16,16v32C240,104.833,247.167,112,256,112z M256,400    c-8.833,0-16,7.167-16,16v32c0,8.833,7.167,16,16,16s16-7.167,16-16v-32C272,407.167,264.833,400,256,400z M380.438,154.167    l22.625-22.625c6.25-6.25,6.25-16.375,0-22.625s-16.375-6.25-22.625,0l-22.625,22.625c-6.25,6.25-6.25,16.375,0,22.625    S374.188,160.417,380.438,154.167z M131.562,357.834l-22.625,22.625c-6.25,6.249-6.25,16.374,0,22.624s16.375,6.25,22.625,0    l22.625-22.624c6.25-6.271,6.25-16.376,0-22.625C147.938,351.583,137.812,351.562,131.562,357.834z M112,256    c0-8.833-7.167-16-16-16H64c-8.833,0-16,7.167-16,16s7.167,16,16,16h32C104.833,272,112,264.833,112,256z M448,240h-32    c-8.833,0-16,7.167-16,16s7.167,16,16,16h32c8.833,0,16-7.167,16-16S456.833,240,448,240z M131.541,154.167    c6.251,6.25,16.376,6.25,22.625,0c6.251-6.25,6.251-16.375,0-22.625l-22.625-22.625c-6.25-6.25-16.374-6.25-22.625,0    c-6.25,6.25-6.25,16.375,0,22.625L131.541,154.167z M380.459,357.812c-6.271-6.25-16.376-6.25-22.625,0    c-6.251,6.25-6.271,16.375,0,22.625l22.625,22.625c6.249,6.25,16.374,6.25,22.624,0s6.25-16.375,0-22.625L380.459,357.812z" fill="#fff"/></g></g></svg>
         <br>
           25&deg;C
      </li>
      <li>
         <div>THU</div>
         <?xml version="1.0" ?><!DOCTYPE svg  PUBLIC '-//W3C//DTD SVG 1.1//EN'  'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'><svg enable-background="new 0 0 512 512" height="37px" id="Layer_1" version="1.1" viewBox="0 0 512 512" width="40px" x="0px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" y="0px"><g><g><path d="M208,64c8.833,0,16-7.167,16-16V16c0-8.833-7.167-16-16-16s-16,7.167-16,16v32    C192,56.833,199.167,64,208,64z M332.438,106.167l22.625-22.625c6.249-6.25,6.249-16.375,0-22.625    c-6.25-6.25-16.375-6.25-22.625,0l-22.625,22.625c-6.25,6.25-6.25,16.375,0,22.625S326.188,112.417,332.438,106.167z M16,224h32    c8.833,0,16-7.167,16-16s-7.167-16-16-16H16c-8.833,0-16,7.167-16,16S7.167,224,16,224z M352,208c0,8.833,7.167,16,16,16h32    c8.833,0,16-7.167,16-16s-7.167-16-16-16h-32C359.167,192,352,199.167,352,208z M83.541,106.167c6.251,6.25,16.376,6.25,22.625,0    c6.251-6.25,6.251-16.375,0-22.625L83.541,60.917c-6.25-6.25-16.374-6.25-22.625,0c-6.25,6.25-6.25,16.375,0,22.625    L83.541,106.167z M400,256c-5.312,0-10.562,0.375-15.792,1.125c-16.771-22.875-39.124-40.333-64.458-51.5    C318.459,145,268.938,96,208,96c-61.75,0-112,50.25-112,112c0,17.438,4.334,33.75,11.5,48.438C47.875,258.875,0,307.812,0,368    c0,61.75,50.25,112,112,112c13.688,0,27.084-2.5,39.709-7.333C180.666,497.917,217.5,512,256,512    c38.542,0,75.333-14.083,104.291-39.333C372.916,477.5,386.312,480,400,480c61.75,0,112-50.25,112-112S461.75,256,400,256z     M208,128c39.812,0,72.562,29.167,78.708,67.25c-10.021-2-20.249-3.25-30.708-3.25c-45.938,0-88.5,19.812-118.375,53.25    C131.688,234.083,128,221.542,128,208C128,163.812,163.812,128,208,128z M400,448c-17.125,0-32.916-5.5-45.938-14.667    C330.584,461.625,295.624,480,256,480c-39.625,0-74.584-18.375-98.062-46.667C144.938,442.5,129.125,448,112,448    c-44.188,0-80-35.812-80-80s35.812-80,80-80c7.75,0,15.062,1.458,22.125,3.541c2.812,0.792,5.667,1.417,8.312,2.521    c4.375-8.562,9.875-16.396,15.979-23.75C181.792,242.188,216.562,224,256,224c10.125,0,19.834,1.458,29.25,3.709    c10.562,2.499,20.542,6.291,29.834,11.291c23.291,12.375,42.416,31.542,54.457,55.062C378.938,290.188,389.209,288,400,288    c44.188,0,80,35.812,80,80S444.188,448,400,448z" fill="#fff"/></g></g></svg>   
         <br>
           22&deg;C
      </li>
      <li>
         <div>FRI</div>
         <?xml version="1.0" ?><!DOCTYPE svg  PUBLIC '-//W3C//DTD SVG 1.1//EN'  'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'><svg enable-background="new 0 0 512 512" height="40px" id="Layer_1" version="1.1" viewBox="0 0 512 512" width="40px" x="0px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" y="0px"><path d="M400,160c-5.312,0-10.562,0.375-15.792,1.125C354.334,120.417,307.188,96,256,96  c-51.188,0-98.312,24.417-128.208,65.125c-5.23-0.75-10.48-1.125-15.792-1.125C50.25,160,0,210.25,0,272s50.25,112,112,112  c13.688,0,27.084-2.5,39.709-7.333C180.666,401.917,217.5,416,256,416c38.542,0,75.333-14.083,104.291-39.333  C372.916,381.5,386.312,384,400,384c61.75,0,112-50.25,112-112S461.75,160,400,160z M400,352c-17.125,0-32.916-5.5-45.938-14.667  C330.584,365.624,295.624,384,256,384c-39.625,0-74.584-18.376-98.062-46.667C144.938,346.5,129.125,352,112,352  c-44.188,0-80-35.812-80-80c0-44.188,35.812-80,80-80c10.812,0,21.062,2.208,30.438,6.083C163.667,156.667,206.291,128,256,128  s92.334,28.667,113.541,70.083C378.938,194.208,389.209,192,400,192c44.188,0,80,35.812,80,80C480,316.188,444.188,352,400,352z" fill="#fff"/></svg>
         <br>
           24&deg;C
      </li>
      <li>
         <div>SAT</div>
         <?xml version="1.0" ?><!DOCTYPE svg  PUBLIC '-//W3C//DTD SVG 1.1//EN'  'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'><svg enable-background="new 0 0 5 512" height="40px" id="Layer_1" version="1.1" viewBox="0 0 512 512" width="40px" x="0px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" y="0px"><g><g><path d="M256,144c-61.75,0-112,50.25-112,112s50.25,112,112,112s112-50.25,112-112S317.75,144,256,144z M256,336    c-44.188,0-80-35.812-80-80c0-44.188,35.812-80,80-80c44.188,0,80,35.812,80,80C336,300.188,300.188,336,256,336z M256,112    c8.833,0,16-7.167,16-16V64c0-8.833-7.167-16-16-16s-16,7.167-16,16v32C240,104.833,247.167,112,256,112z M256,400    c-8.833,0-16,7.167-16,16v32c0,8.833,7.167,16,16,16s16-7.167,16-16v-32C272,407.167,264.833,400,256,400z M380.438,154.167    l22.625-22.625c6.25-6.25,6.25-16.375,0-22.625s-16.375-6.25-22.625,0l-22.625,22.625c-6.25,6.25-6.25,16.375,0,22.625    S374.188,160.417,380.438,154.167z M131.562,357.834l-22.625,22.625c-6.25,6.249-6.25,16.374,0,22.624s16.375,6.25,22.625,0    l22.625-22.624c6.25-6.271,6.25-16.376,0-22.625C147.938,351.583,137.812,351.562,131.562,357.834z M112,256    c0-8.833-7.167-16-16-16H64c-8.833,0-16,7.167-16,16s7.167,16,16,16h32C104.833,272,112,264.833,112,256z M448,240h-32    c-8.833,0-16,7.167-16,16s7.167,16,16,16h32c8.833,0,16-7.167,16-16S456.833,240,448,240z M131.541,154.167    c6.251,6.25,16.376,6.25,22.625,0c6.251-6.25,6.251-16.375,0-22.625l-22.625-22.625c-6.25-6.25-16.374-6.25-22.625,0    c-6.25,6.25-6.25,16.375,0,22.625L131.541,154.167z M380.459,357.812c-6.271-6.25-16.376-6.25-22.625,0    c-6.251,6.25-6.271,16.375,0,22.625l22.625,22.625c6.249,6.25,16.374,6.25,22.624,0s6.25-16.375,0-22.625L380.459,357.812z" fill="#fff"/></g></g></svg>
         <br>
           26&deg;C
      </li>
      <li>
         <div>SUN</div>
         <?xml version="1.0" ?><!DOCTYPE svg  PUBLIC '-//W3C//DTD SVG 1.1//EN'  'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'><svg enable-background="new 0 0 5 512" height="40px" id="Layer_1" version="1.1" viewBox="0 0 512 512" width="40px" x="0px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" y="0px"><g><g><path d="M256,144c-61.75,0-112,50.25-112,112s50.25,112,112,112s112-50.25,112-112S317.75,144,256,144z M256,336    c-44.188,0-80-35.812-80-80c0-44.188,35.812-80,80-80c44.188,0,80,35.812,80,80C336,300.188,300.188,336,256,336z M256,112    c8.833,0,16-7.167,16-16V64c0-8.833-7.167-16-16-16s-16,7.167-16,16v32C240,104.833,247.167,112,256,112z M256,400    c-8.833,0-16,7.167-16,16v32c0,8.833,7.167,16,16,16s16-7.167,16-16v-32C272,407.167,264.833,400,256,400z M380.438,154.167    l22.625-22.625c6.25-6.25,6.25-16.375,0-22.625s-16.375-6.25-22.625,0l-22.625,22.625c-6.25,6.25-6.25,16.375,0,22.625    S374.188,160.417,380.438,154.167z M131.562,357.834l-22.625,22.625c-6.25,6.249-6.25,16.374,0,22.624s16.375,6.25,22.625,0    l22.625-22.624c6.25-6.271,6.25-16.376,0-22.625C147.938,351.583,137.812,351.562,131.562,357.834z M112,256    c0-8.833-7.167-16-16-16H64c-8.833,0-16,7.167-16,16s7.167,16,16,16h32C104.833,272,112,264.833,112,256z M448,240h-32    c-8.833,0-16,7.167-16,16s7.167,16,16,16h32c8.833,0,16-7.167,16-16S456.833,240,448,240z M131.541,154.167    c6.251,6.25,16.376,6.25,22.625,0c6.251-6.25,6.251-16.375,0-22.625l-22.625-22.625c-6.25-6.25-16.374-6.25-22.625,0    c-6.25,6.25-6.25,16.375,0,22.625L131.541,154.167z M380.459,357.812c-6.271-6.25-16.376-6.25-22.625,0    c-6.251,6.25-6.271,16.375,0,22.625l22.625,22.625c6.249,6.25,16.374,6.25,22.624,0s6.25-16.375,0-22.625L380.459,357.812z" fill="#fff"/></g></g></svg>
         <br>
           28&deg;C
      </li>
    </ul>
  </div>
</div>
<div class="footer">
  
</div>
<div class="footer2">
  
</div>
        <div class="footer-content">
            Inspired by: <a href="http://dribbble.com/shots/1081917-WhereTO-App">Tiberiu Neamu</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  Weather Icons By: <a href="https://www.iconfinder.com/search/?q=iconset%3Ameteocons">Alessio Atzeni</a>
        </div>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg">
    <filter id="blur">
      <feGaussianBlur stdDeviation="20"/>
    </filter>
</svg>
              
            
!

CSS

              
                body{
  margin: 0px;
  padding: 0px;
  overflow: hidden;
}

.body{
  position: absolute;
  left: -40px;
  top: -40px;
  bottom: -60px;
  background-image: url(http://dailyawesimity.files.wordpress.com/2013/06/honolulu-hawaii-floating-lanter-festival.jpg);
  background-size: cover;
  background-position: center;
  width: calc(100% + 80px);
  width: -webkit-calc(100% + 80px);
  -webkit-filter: blur(20px); 
  filter: url('#blur'); 
}

.box{
  display: none;
  width: 510px;
  height: 240px;
  background: #fff;
  border-radius: 5px;
  position: absolute;
  top: calc(50% - 140px);
  top: -webkit-calc(50% - 140px);
  left: calc(50% - 275px);
  left: -webkit-calc(50% - 275px);
  background-image: url(http://dailyawesimity.files.wordpress.com/2013/06/honolulu-hawaii-floating-lanter-festival.jpg);
  background-size: cover;
  background-position: 0 -20px;
  padding: 10px;
  box-shadow: 0 0 10px #555;
}

.country{
  font-family: Arial;
  font-size: 22px;
  color: #70A9B9;
  padding-top: 14px;
  float: right;
}

.city{
  font-family: Arial;
  font-size: 25px;
  padding-top: 10px;
  color: #fff;
  float: right;
}

.tmp{
  position: absolute;
  top: 5px;
  left: 100px;
  color: #fff;
  font-size: 40px;
  padding-top: 10px;
  font-family: Arial;
}

.min-tmp{
  font-size: 30px;
  color: #ddeeff;
}

.wind{
  position: absolute;
  top: 50px;
  left: 100px;
  color: #fff;
  font-size: 16px;
  padding-top: 10px;
  font-family: Arial;
}

.date{
  position: absolute;
  top: 60px;
  right: 10px;
  font-family: Arial;
  font-size: 15px;
  color: #70A9B9;
}

.bottom{
  background: rgba(200,200,200,0.7);
  position: absolute;
  bottom: 0px;
  width: 100%;
  border-radius: 0 0 5px 5px;
  margin-left: -10px;
  height: 127px;
  text-align:center;
}

ul{
  margin: 0px;
  padding: 0px;
  list-style: none;
}

li{
  float: left;
  font-family: Arial;
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 1px 0 #888;
  text-align: center;
  padding: 22px;
  border-right: 1px solid #888;
}

li:last-child{
  border-right: 0px solid #fff;
  padding-right: 0px;
}

li div{
  background:rgba(50,50,50,0.5);
  border-radius: 15px;
  padding: 2px 5px 2px 5px;;
  font-size: 12px;
  margin-bottom: 5px;
}

.footer{
  position: absolute;
  bottom: 0px;
  left: -40px;
  background: rgba(0,0,0,0.4);
  width: 240px;
  font-family: Arial;
  font-size: 14px;
  color: #555;
  padding: 3px;
  height: 20px;
  border-right: 1px solid #111;
  -webkit-transform: skew(45deg,0);
}

.footer2{
  position: absolute;
  bottom: 0px;
  left: 207px;
  background: rgba(0,0,0,0.4);
  width: 240px;
  font-family: Arial;
  font-size: 14px;
  color: #555;
  padding: 3px;
  height: 20px;
  -webkit-transform: skew(45deg,0);
}

.footer-content{
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 450px;
  font-family: Arial;
  font-size: 14px;
  color: #aaa;
  padding: 3px;
  padding-left: 10px;
}

.footer-content a {
  text-decoration: none;
  color: #017EC4;
}
              
            
!

JS

              
                $(document).ready(function(){
  $(".body").css("height",$(document).innerHeight()+80);
  $(".box").delay(200).show("puff");
});
              
            
!
999px

Console