Skip to content

Commit 433213b

Browse files
committed
Week 3 code ground and clouds moving
1 parent 0181bcd commit 433213b

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

www/css/style.css

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,35 @@ div.cloud:after {
3232
top: -55px;
3333
left: auto;
3434
right: 15px;
35-
}
35+
}
36+
37+
div.c1 {
38+
top: 250px;
39+
-webkit-animation: moveclouds 15s linear infinite;
40+
}
41+
42+
@-webkit-keyframes moveclouds {
43+
0% {margin-left: 600px;}
44+
100% {margin-left: -600px;}
45+
}
46+
47+
div.ground {
48+
background: #8a8360;
49+
border-top: 5px solid #007A00;
50+
position: absolute;
51+
height: 30px;
52+
bottom: 0px;
53+
width: 100%;
54+
}
55+
56+
57+
58+
59+
60+
61+
62+
63+
64+
65+
66+

www/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
<div class="cloud c1"></div>
1515
</div>
1616

17+
<div class="ground">
18+
19+
</div>
20+
1721
<script type="text/javascript" src="cordova.js"></script>
1822
<script type="text/javascript" src="js/index.js"></script>
1923
<script type="text/javascript" src="js/jumpy.js"></script>

0 commit comments

Comments
 (0)