-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
52 lines (46 loc) · 915 Bytes
/
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
body {
margin: 0;
}
.day {
height: 623px;
width: 1365px;
background: url(image/Pemandangan.svg);
overflow-y: hidden;
background-size: cover;
position: relative;
overflow-x: hidden;
}
.surface {
height: 300px;
width: 400%;
background: url(image/Jalan.svg);
display: block;
position: absolute;
margin: 21rem auto;
left: 0%;
background-repeat: repeat-x;
animation: moveRight 10s linear infinite;
}
.scooter {
position: absolute;
bottom: 2%;
left: 24%;
animation: suspension 1s linear infinite;
}
/* animation */
@keyframes moveRight {
100% {
transform: translateX(-2950px);
}
}
@keyframes suspension {
100% {
transform: translateY(-1px);
}
50% {
transform: translateY(2px);
}
0% {
transform: translateY(-1px);
}
}