<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<!DOCTYPE html><html lang='en' class=''>
<head><script src='//production-assets.codepen.io/assets/editor/live/console_runner-079c09a0e3b9ff743e39ee2d5637b9216b3545af0de366d4b9aad9dc87e26bfd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/events_runner-73716630c22bbc8cff4bd0f07b135f00a0bdc5d14629260c3ec49e5606f98fdd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/css_live_reload_init-2c0dc5167d60a5af3ee189d570b1835129687ea2a61bee3513dee3a50c115a77.js'></script><meta charset='UTF-8'><meta name="robots" content="noindex"><link rel="shortcut icon" type="image/x-icon" href="//production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico" /><link rel="mask-icon" type="" href="//production-assets.codepen.io/assets/favicon/logo-pin-f2d2b6d2c61838f7e76325261b7195c27224080bc099486ddd6dccb469b8e8e6.svg" color="#111" /><link rel="canonical" href="https://codepen.io/slstudios/pen/RPqVxb?limit=all&page=63&q=json" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css'><link rel='stylesheet prefetch' href='//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css'>
<style class="cp-pen-styles">@import url(https://fonts.googleapis.com/css?family=Questrial);
body {
background: #444;
font-family: Questrial;
}
.weather-app {
width: 100%;
height: 100vh;
max-width: 1100px;
margin: 0 auto;
margin-top: 50px;
overflow: hidden;
max-height: 350px;
}
.days-of-the-week {
width: 100%;
margin: 0 auto;
text-align: center;
height: 350px;
overflow: hidden;
}
.days-of-the-week li {
width: 12.8%;
height: auto;
min-height: 350px!important;
border: none;
display: inline-block;
transition: ease .2s;
margin: 0;
padding: 0;
font-size: 8px;
color: #ccc;
font-weight: 600;
text-transform: uppercase;
padding-top: 20px;
text-shadow: 0px 1px 3px #333;
margin-left: -3px;
margin-right: -3px;
color: #222;
}
.days-of-the-week li:hover {
padding-left: 60px;
padding-right: 60px;
}
.days-of-the-week li:nth-child(odd):hover {
background-position: 100% center;
}
.days-of-the-week li:nth-child(even):hover {
background-position: 0 center;
}
.days-of-the-week li h3 {
transition: ease .25s;
font-size: 20px;
color: #999;
}
.days-of-the-week li:hover h3 {
color: #fff;
}
.monday {
background: url('https://static.pexels.com/photos/113/sky-clouds-cloudy-weather-medium.jpg') no-repeat center center;
background-size: cover;
-webkit-box-shadow: 8px 0px 12px -1px rgba(0, 0, 0, 0.53);
-moz-box-shadow: 8px 0px 12px -1px rgba(0, 0, 0, 0.53);
box-shadow: 8px 0px 12px -1px rgba(0, 0, 0, 0.53);
position: relative;
z-index: 12;
}
.tuesday {
background: url('https://static.pexels.com/photos/6566/sea-sky-clouds-weather-medium.jpg') no-repeat center center;
background-size: cover;
-webkit-box-shadow: 8px 0px 12px -1px rgba(0, 0, 0, 0.53);
-moz-box-shadow: 8px 0px 12px -1px rgba(0, 0, 0, 0.53);
box-shadow: 8px 0px 12px -1px rgba(0, 0, 0, 0.53);
position: relative;
z-index: 10;
}
.wednesday {
background: url('https://static.pexels.com/photos/799/city-lights-night-clouds-medium.jpg') no-repeat center center;
background-size: cover;
-webkit-box-shadow: 8px 0px 12px -1px rgba(0, 0, 0, 0.53);
-moz-box-shadow: 8px 0px 12px -1px rgba(0, 0, 0, 0.53);
box-shadow: 8px 0px 12px -1px rgba(0, 0, 0, 0.53);
position: relative;
z-index: 9;
}
.thursday {
background: url('https://static.pexels.com/photos/896/city-weather-glass-skyscrapers-medium.jpg') no-repeat center center;
background-size: cover;
-webkit-box-shadow: 8px 0px 12px -1px rgba(0, 0, 0, 0.53);
-moz-box-shadow: 8px 0px 12px -1px rgba(0, 0, 0, 0.53);
box-shadow: 8px 0px 12px -1px rgba(0, 0, 0, 0.53);
position: relative;
z-index: 8;
}
.friday {
background: url('https://static.pexels.com/photos/4022/cold-snow-forest-trees-medium.jpeg') no-repeat center center;
background-size: cover;
-webkit-box-shadow: 8px 0px 12px -1px rgba(0, 0, 0, 0.53);
-moz-box-shadow: 8px 0px 12px -1px rgba(0, 0, 0, 0.53);
box-shadow: 8px 0px 12px -1px rgba(0, 0, 0, 0.53);
position: relative;
z-index: 7;
}
.saturday {
background: url('https://static.pexels.com/photos/3768/sky-sunny-clouds-cloudy-medium.jpg') no-repeat center center;
background-size: cover;
-webkit-box-shadow: 8px 0px 12px -1px rgba(0, 0, 0, 0.53);
-moz-box-shadow: 8px 0px 12px -1px rgba(0, 0, 0, 0.53);
box-shadow: 8px 0px 12px -1px rgba(0, 0, 0, 0.53);
position: relative;
z-index: 6;
}
.sunday {
background: url('https://static.pexels.com/photos/6923/mountains-fog-green-beauty-large.jpg') no-repeat center center;
background-size: cover;
position: relative;
z-index: 5;
}
.active {
padding-left: 40px;
padding-right: 40px;
}
.fa {
font-size: 52px;
position: absolute;
left: 0;
right: 0;
top: 60px;
opacity: .2;
color: #81D4FA;
transition: ease .4s;
}
.days-of-the-week li:hover .fa {
top: 100px;
opacity: .95;
font-size: 80px;
color: #fff;
}
b {
font-size: 12px;
padding-top: 50px;
}
.days-of-the-week a {
display: none;
}
.days-of-the-week img {
display: none;
}
em {
position: absolute;
left: 0;
right: 0;
bottom: 0;
transition: ease .3s;
}
.days-of-the-week li:hover em {
bottom: 100px;
color: #fff;
font-size: 22px;
}
@media (max-width:1000px) {
.days-of-the-week li h3 {
font-size: 16px;
}
}
@media (max-width:750px) {
.days-of-the-week li h3 {
font-size: 12px;
}
}
@media (max-width:650px) {
.days-of-the-week li {
width: 100%;
display: block;
text-align: center;
}
.days-of-the-week li h3 {
font-size: 30px;
}
.weather-app {
height: 100%;
max-height: 100%;
max-width: 100%;
width: 100%;
}
.days-of-the-week li {
padding: 0px;
}
.days-of-the-week li:hover {
padding: 0px;
}
.days-of-the-week {
height: 100%;
}
}</style></head><body>
<main class="weather-app">
<ul class="days-of-the-week">
<li class="monday active">
<h3>Monday</h3>
<i class="fa fa-leaf"></i>
<em>Partially Cloudy</em>
</li>
<li class="tuesday">
<h3>Tuesday</h3>
<i class="fa fa-cloud"></i>
<em>Cloudy</em>
</li>
<li class="wednesday">
<h3>Wednesday</h3>
<i class="fa fa-bolt"></i>
<em>Thunderstorms</em>
</li>
<li class="thursday">
<h3>Thursday</h3>
<i class="fa fa-tint"></i>
<em>Chance of Rain</em>
</li>
<li class="friday">
<h3>Friday</h3>
<i class="fa fa-tint"></i>
<em>Snow</em>
</li>
<li class="saturday">
<h3>Saturday</h3>
<i class="fa fa-cloud"></i>
<em>Sunny</em>
</li>
<li class="sunday">
<h3>Sunday</h3>
<i class="fa fa-cloud"></i>
<em>Foggy</em>
</li>
</ul>
</main>
<script src='//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js'></script><script src='//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script >$.ajax({
url: 'https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%2292007%22)&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys',
success : function(json){
//Create an h1 inside aside and place the title inside
$('').append(json.query.results.channel.item.description);
}
});
//# sourceURL=pen.js
</script>
</body></html>