-
Notifications
You must be signed in to change notification settings - Fork 0
/
scene_add.css
167 lines (128 loc) · 2.28 KB
/
scene_add.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
/*
> Hello, my name is Aaron
> I built this to show a little CSS fun.
*/
body {margin: 8px;}
body div.pane {
border: black solid 1px;
border-radius: 10px;
}
/*--- ---*/
/*
> Let's get started by giving ourselves a
little space to work with.
*/
body div.pane {height:90%; width: 45%;}
/*--- ---*/
/*
> You want to see what's happening
and follow along...
*/
body {margin-top: 3% !important; padding: 2px;}
div.pane {top: 3%;}
div.pane#left {left: 3%;}
div.pane#right {left: 50%;}
/*--- ---*/
/*
> Also, let's rotate these a little...
*/
div.pane#left {transform: rotateY(10deg);}
div.pane#right {transform: rotateY(-10deg);}
/*--- ---*/
/*
Add a sky
*/
div#left {
background-color: skyblue;
}
/*--- ---*/
/*
Hmm - How about some grass?
*/
div#grass {
height: 35%;
width: 100%;
background-color: yellowgreen;
position: absolute;
bottom: 0px;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
z-index: 10;
}
/*--- ---*/
/*
Great! Now what?
Oooh, a Sun would be good,
*/
div#sun_container {
position: relative;
top: 500px;
left: 200px;
}
div#sun {
height: 150px;
width: 150px;
background-color: goldenrod;
clip-path: circle(50%);
z-index: 5;
position: absolute;
}
div#sun_container {
top: 100px !important;
left: 200px;
}
div#left div#moon_container {
top: 75%;
left: 60%;
position: absolute;
}
div#moon {
height: 100px;
width: 100px;
background-color: white;
clip-path: circle(50%);
position: absolute;
}
/*--- ---*/
/*
> Green field, Sunny day.
> Let's put a couple of cows in the pasture here.
*/
div#cow1 {
visibility: visible;
left: 10%;
animation: cow_drop 1.5s linear;
}
/*--- ---*/
div#cow2 {
visibility: visible;
left: 70%;
animation: cow_drop2 1.5s linear;
}
/*--- ---*/
/*
> Well, it's been a long day.
> How about we turn out the lights?
*/
div#left div#moon_container {
top: 150px !important;
left: 300px;
}
div#left #sun_container {
top: 70% !important;
}
div#left div#grass {
background-color: darkgreen;
}
div#left {
background-color: darkviolet !important;
}
/*--- ---*/
div#saucer {
animation: saucer_movement 8s ease-in-out;
}
/*--- ---*/
/*
> ... That was weird.
> Thanks for watching!
*/