Skip to content

Commit

Permalink
Updated new clouds and cylinder for week 3 code
Browse files Browse the repository at this point in the history
  • Loading branch information
noelking committed Oct 17, 2015
1 parent 433213b commit a90f712
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
60 changes: 60 additions & 0 deletions www/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,66 @@ div.ground {
width: 100%;
}

div.c2 {
top: 0px;
-webkit-animation: moveclouds 3s linear infinite;
}

div.c3 {
top: 300px;
-webkit-animation: moveclouds 5s linear infinite;
background: pink;
}

div.c3:before, div.c3:after {
background: pink;
}

div.c4 {
top: 100px;
-webkit-animation: moveclouds 10s linear infinite;
background: orange;
}

div.c4:before, div.c4:after {
background: orange;
}

div.cylinder {
position: relative;
margin-bottom: 0px;
z-index: 100;
height: 320px;
bottom: 20%;
}

div.cylinder .middle {
width: 50px;
height: 250px;
background: #870000;
position: absolute;
}

div.cylinder .top {
width: 50px;
height: 30px;
background: #BD0000;
-webkit-border-radius: 30px / 15px;
position: absolute;
top: -10px;
z-index: 110;
}

div.cylinder .bottom {
width: 50px;
height: 40px;
background: #870000;
-webkit-border-radius: 30px / 15px;
position: absolute;
bottom: 40px;
box-shadow: 0px 0px 10px rdba(0,0,0,0.75);
}




Expand Down
9 changes: 9 additions & 0 deletions www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@
<body>
<div class="clouds">
<div class="cloud c1"></div>
<div class="cloud c2"></div>
<div class="cloud c3"></div>
<div class="cloud c4"></div>
</div>

<div class="cylinder">
<div class="top"></div>
<div class="middle"></div>
<div class="bottom"></div>
</div>

<div class="ground">
Expand Down

0 comments on commit a90f712

Please sign in to comment.