-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle2.css
More file actions
89 lines (76 loc) · 1.22 KB
/
Copy pathstyle2.css
File metadata and controls
89 lines (76 loc) · 1.22 KB
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
html, body{
width:100%;
height:100%;
max-width:100%;
margin:0;
overflow:hidden;
}
.sky{
height:40%;
background-color: lightblue;
}
.grass{
height:30%;
background-color: seagreen;
}
.road{
height:30%;
background-color: dimgray;
border-top: 10px solid gray;
border-bottom: 10px solid gray;
box-sizing:border-box;
position: relative;
}
.line{
border:5px dashed #fff;
position:absolute;
top:50%;
width:100%;
box-sizing:border-box;
}
.mario{
height:85px;
width:80px;
position:absolute;
top:-20px;
left:0;
animation: drive 5s both infinite linear, jump 0.3s 2.5s ease;
}
.luigi{
height:85px;
width:80px;
position:absolute;
top:75px;
left:0;
animation-name: drive;
animation-duration: 7s;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
.cloud{
position:absolute;
}
.cloud:nth-child(1){
width:200px;
top:100px;
opacity:0.5;
animation: wind 80s linear infinite reverse;
}
.cloud:nth-child(2){
width:300px;
top:0;
animation: wind 50s linear infinite reverse;
}
@keyframes drive{
from{ transform: translateX(-200px)}
to{ transform: translateX(1500px)}
}
@keyframes wind{
from{left:-300px}
to{left:100%}
}
@keyframes jump{
0%{top:-20px}
50%{top:-80px}
100%{top:-20px}
}