-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
107 lines (97 loc) · 1.57 KB
/
index.css
File metadata and controls
107 lines (97 loc) · 1.57 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
*{
margin: 0;
padding:0;
}
body{
overflow: hidden;
height:100%;
background-color: lavender;
}
.container{
position: relative;
height:100vh;
width:100%;
overflow: hidden;
}
.sky,.trees,.track{
position:absolute;
left: 0;
width: 200%;
/* background-repeat: no-repeat; */
}
.sky {
height:40%;
top:0;
}
.trees{
top: 3px;
height:40%;
}
.track{
bottom: 0;
height:30%;
}
/* .trees img{
height: 150%;
width:100%;
position: absolute;
bottom: 0;
/* border: 2px solid red; */
/* background-repeat: no-repeat;
background-size: cover;
} */
/* .trees img{
height: 40vh;
width:100%;
} */
/* .track img{
height: 40vh;
width:800vw;
position: absolute;
bottom: 0vh;
transition: carMove linear 13s infinite ;
border: 2px solid blue;
} */
.car{
/* border:2px solid red; */
position:absolute;
bottom:10%;
left:10%;
width: 200px;
transform-origin:center bottom;
/* animation:shake linear .3s infinite; */
}
.car-body{
width:60%;
display: block;
}
.wheels{
position:absolute;
bottom:0;
width: 93%;
transform-origin: center;
}
.wheel1{
left:62%;
}
.wheel2{
right:0%;
left:322%;
width:92%;
}
.buttons{
position: absolute;
top: 20%;
left: 25%;
align-items: center;
transform: translateX(-50%);
}
button{
cursor: pointer;
padding:10px 20px;
margin:0 5px;
font-size: 15px;
color:rgb(44, 85, 162);
background-color: deepskyblue;
border-radius: 15px;
}