-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.htm
346 lines (303 loc) · 7.22 KB
/
index.htm
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta property="og:url" content="http://reinaldoferraz.com.br/css3bb8/thumb.jpg">
<meta property="og:title" content="CSS3 Star Wars BB-8 Droid">
<meta property="og:site_name" content="CSS3 Star Wars BB-8 Droid">
<meta property="og:image" content="http://reinaldoferraz.com.br/css3bb8/thumb.jpg">
<meta property="og:image:type" content="image/jpg">
<meta property="og:image:width" content="470">
<meta property="og:image:height" content="246">
<meta property="og:description" content="A Star Wars BB-8 droid created using pure CSS3">
<title>CSS3 Star Wars BB-8 Droid - Reinaldo Ferraz</title>
<style>
@import url(https://fonts.googleapis.com/css?family=Open+Sans);
body{
background: #752201;
font-family: 'Open Sans', sans-serif;
}
#ground{
width: 100%;
height: 400px;
position: absolute;
top: 0px;
left: 0px;
background: #8AC0CE;
z-index: -2;
animation:space 50s infinite linear alternate;
}
#b8head{
height:90px;
width:180px;
border-radius: 90px 90px 0 0;
border: 2px solid gray;
border-bottom: 0px;
position: absolute;
background: white;
z-index: 2;
margin-left: 60px;
background-image:
radial-gradient(ellipse farthest-corner at 90px 10px, white 10%, silver 30% , white 40% , orange 60%, white 10% ,transparent 40%);
background-size: 120%;
background-position:0px -30px;
background-repeat: no-repeat;
}
#antena{
position: absolute;
margin-left: 200px;
margin-top: -20px;
width: 2px;
height: 40px;
background-color: #666;
z-index: 1;
animation: 7s antena infinite linear;
}
#b8head:after{
content: " ";
display: block;
height:40px;
width:180px;
border-radius: 0 0 90px 90px;
border: 2px solid gray;
position: absolute;
background: white;
z-index: 1;
margin-left: -2px;
margin-top: 90px;
border-top: 0px;
background-image:
radial-gradient(ellipse, white 30% ,orange 60% ,transparent 20%);
background-size: 370px 100px;
background-position: -90px -50px;
box-shadow: 0px 5px 7px silver;
}
#eyes{
content: " ";
display: block;
height:40px;
width:40px;
border: 8px solid white;
border-radius: 100%;
position: absolute;
background-image: radial-gradient(ellipse, gray 55% ,silver 25%);
margin-top: 40px;
margin-left: 30px;
z-index: 2;
animation: 7s eyes infinite linear;
}
#eyes:before{
content: " ";
display: block;
height:25px;
width:25px;
border-radius: 100%;
position: absolute;
background-image: radial-gradient(ellipse, silver 55% ,gray 25%);
margin-top: 40px;
margin-left: 30px;
z-index: 2;
}
#eyes:after{
content: " ";
display: block;
height:15px;
width:15px;
border-radius: 100%;
position: absolute;
background-color: gray;
margin-top: 50px;
margin-left: 10px;
z-index: 2;
}
#b8body{
position: absolute;
z-index: 0;
margin-top: 100px;
width: 300px;
height: 300px;
border-radius: 50%;
border: 2px solid gray;
animation: 1s anima infinite linear;
background-image:
radial-gradient(100px at 85px 50%, silver 15% ,white 25% ,orange 40% ,transparent 40%),
linear-gradient(0deg, orange 18%, orange 20%),
linear-gradient(90deg, orange 18%, orange 20%),
radial-gradient(ellipse, silver 15% ,white 25% ,orange 40% ,transparent 40%),
radial-gradient(ellipse, white 30% ,orange 40% ,transparent 40%),
radial-gradient(ellipse, white 30% ,orange 40% ,transparent 40%),
radial-gradient(ellipse, white 30% ,orange 40% ,transparent 40%),
radial-gradient(ellipse, white 30% ,orange 40% ,transparent 40%),
linear-gradient(0deg, transparent 48%, #2c2c2c 50%, transparent 10%),
linear-gradient(0deg, transparent 48%, #2c2c2c 50%, transparent 10%),
linear-gradient(90deg, transparent 48%, #2c2c2c 50%, transparent 10%);
background-size: 170px, 20px 160px, 160px 20px, 300px, 300px, 300px, 300px, 300px, 300px, 300px, 300px;
background-position: center, center,center,center, 200px 0px, -200px 0px, 0px 200px, 0px -200px, center, center;
background-color: white;
background-repeat: no-repeat;
}
#walk{
animation: 1s walk infinite;
width: 300px;
margin-left: auto;
margin-right: auto;
}
#shadow{
position: absolute;
width: 250px;
height: 50px;
z-index: -2;
background: radial-gradient(ellipse at center, rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 80%);
margin-top: 370px;
margin-left: -40px;
}
@keyframes anima{
from{
transform: rotate(0deg);
}
to{
transform: rotate(360deg);
}
}
@keyframes eyes{
0%{margin-left: 20px;}
80%{margin-left: 20px;}
90%{margin-left: 100px;}
100%{margin-left: 20px;}
}
@keyframes antena{
0%{margin-left: 200px;}
80%{margin-left: 200px;}
90%{margin-left: 120px;}
100%{margin-left: 200px;}
}
@keyframes walk{
0%{margin-top: 30px;}
10%{margin-top: 40px;}
20%{margin-top: 40px;}
30%{margin-top: 30px;}
40%{margin-top: 40px;}
50%{margin-top: 30px;}
60%{margin-top: 40px;}
70%{margin-top: 30px;}
80%{margin-top: 30px;}
90%{margin-top: 40px;}
100%{margin-top: 30px;}
}
@keyframes space {
from {
background: rgb(252,252,200);
}
to {
background: rgb(207,207,165);
}
}
/*-------------Planets------------*/
.planet1{
position:fixed;
z-index:-1;
top:400px;
right:-100px;
height:500px;
width:500px;
background:radial-gradient(ellipse, rgba(213,206,166,1) 0%,rgba(183,173,112,1) 100%);
box-shadow:0px 0px 70px yellow;
border-radius:500px;
}
.planet2{
position:absolute;
z-index:-1;
top:130px;
right:200px;
height:60px;
width:60px;
background:radial-gradient(ellipse, rgba(254,252,234,1) 0%,rgba(241,218,54,1) 100%);
box-shadow:0px 0px 20px yellow;
border-radius:100px;
}
.planet2:hover,
.planet3:hover{
box-shadow:0px 0px 40px yellow;
transition: 0.5s;
}
.planet1:hover{
box-shadow:0px 0px 90px yellow;
transition: 0.5s;
}
.planet3{
position:absolute;
z-index:-1;
top:200px;
right:140px;
height:60px;
width:60px;
background:radial-gradient(ellipse, rgba(254,255,232,1) 0%,rgba(214,219,191,1) 100%);
box-shadow:0px 0px 20px yellow;
border-radius:100px;
}
.planets{
position:absolute;
animation:allplanets 120s infinite linear alternate;
height:100px;
}
@keyframes allplanets {
from {
top:-70px;
right:100px
}
to {
top:100px;
right: 0px;
}
}
h1{
position:absolute;
top:410px;
left: 30px;
z-index: 5;
font-family: 'Open Sans', sans-serif;
color: white;
}
a.tweet{
position:absolute;
top:0px;
right: 0px;
color:black;
padding:5px 30px 5px 100%;
white-space: nowrap;
font-weight:bold;
text-decoration:none;
z-index: 5;
}
a.tweet:hover:after,
a.tweet:focus:after{
background:white;
color: black;
content:"http://twitter.com/reinaldoferraz";
}
a.tweet:hover,
a.tweet:focus{
background:white;
color: white;
}
</style>
</head>
<body>
<h1>CSS3 BB-8 Robot</h1>
<a href="http://twitter.com/reinaldoferraz/" class="tweet">Reinaldo Ferraz</a>
<a href="https://github.com/reinaldoferraz/CSS3-BB-8/"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_left_darkblue_121621.png" alt="Fork me on GitHub"></a>
<div id="ground"></div>
<div id="walk">
<div id="b8head">
<div id="eyes"></div>
</div>
<div id="b8body"></div>
<div id="antena"></div>
<div id="shadow"></div>
</div>
<div class="planets">
<div class="planet2"></div>
<div class="planet3"></div>
</div>
</body>
</html>