Skip to content

Commit a90f712

Browse files
committed
Updated new clouds and cylinder for week 3 code
1 parent 433213b commit a90f712

File tree

2 files changed

+69
-0
lines changed

2 files changed

+69
-0
lines changed

www/css/style.css

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,66 @@ div.ground {
5353
width: 100%;
5454
}
5555

56+
div.c2 {
57+
top: 0px;
58+
-webkit-animation: moveclouds 3s linear infinite;
59+
}
60+
61+
div.c3 {
62+
top: 300px;
63+
-webkit-animation: moveclouds 5s linear infinite;
64+
background: pink;
65+
}
66+
67+
div.c3:before, div.c3:after {
68+
background: pink;
69+
}
70+
71+
div.c4 {
72+
top: 100px;
73+
-webkit-animation: moveclouds 10s linear infinite;
74+
background: orange;
75+
}
76+
77+
div.c4:before, div.c4:after {
78+
background: orange;
79+
}
80+
81+
div.cylinder {
82+
position: relative;
83+
margin-bottom: 0px;
84+
z-index: 100;
85+
height: 320px;
86+
bottom: 20%;
87+
}
88+
89+
div.cylinder .middle {
90+
width: 50px;
91+
height: 250px;
92+
background: #870000;
93+
position: absolute;
94+
}
95+
96+
div.cylinder .top {
97+
width: 50px;
98+
height: 30px;
99+
background: #BD0000;
100+
-webkit-border-radius: 30px / 15px;
101+
position: absolute;
102+
top: -10px;
103+
z-index: 110;
104+
}
105+
106+
div.cylinder .bottom {
107+
width: 50px;
108+
height: 40px;
109+
background: #870000;
110+
-webkit-border-radius: 30px / 15px;
111+
position: absolute;
112+
bottom: 40px;
113+
box-shadow: 0px 0px 10px rdba(0,0,0,0.75);
114+
}
115+
56116

57117

58118

www/index.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@
1212
<body>
1313
<div class="clouds">
1414
<div class="cloud c1"></div>
15+
<div class="cloud c2"></div>
16+
<div class="cloud c3"></div>
17+
<div class="cloud c4"></div>
18+
</div>
19+
20+
<div class="cylinder">
21+
<div class="top"></div>
22+
<div class="middle"></div>
23+
<div class="bottom"></div>
1524
</div>
1625

1726
<div class="ground">

0 commit comments

Comments
 (0)