-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
91 lines (83 loc) · 1.5 KB
/
style.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
*{
margin: 0px;
padding: 0px;
}
.sky {
height: 100vh;
width: 100vw;
background-image: url(./sky4.jpg);
background-size: cover;
overflow: hidden;
}
.road {
height: 300px;
width: 500%;
background-image: url(./road.jpeg);
background-size: 1600px ;
position: absolute;
bottom: 0px;
animation: roadmove 5s linear infinite;
overflow: hidden;
}
@keyframes roadmove {
100%{
transform: translateX(-3000px);
}
}
.city {
height: 300px;
width: 500%;
background-image: url(city.png);
background-size: 300px;
position: absolute;
bottom: 288px;
animation: citymove 15s linear infinite;
}
@keyframes citymove {
100%{
transform: translate(-1000px);
}
}
.car {
width: 300px;
position: absolute;
transform: translateX(-50%);
bottom: 150px;
left: 50%;
animation: carmove 1s linear infinite;
}
img {
height: 300px;
width: 200%;
}
@keyframes carmove {
0%{
transform: translateY(-1px);
}
50%{
transform: translateY(1px);
}
100%{
transform: translateY(-1px);
}
}
.wheels img{
height: 100px;
width: 100px;
animation: wheelmove 1s linear infinite;
}
#front {
left: 83.5%;
top: 50%;
position: absolute;
}
#back {
left: 54.5%;
top: 50%;
position: absolute;
}
@keyframes wheelmove {
100%{
transform: rotate(360deg);
}
}