-
Notifications
You must be signed in to change notification settings - Fork 0
/
Style.css
55 lines (47 loc) · 938 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
53
54
55
body{
margin: 0;
background-color: rgb(46, 6, 138);
overflow-y: hidden ;
}
.night{
height: 80vh;
width: 70vw;
margin: 5rem auto;
background: url('./assets/sky2.jpg');
background-size: cover;
position: relative;
box-shadow: 1px 2px 60px black;
overflow-x: hidden;
}
.surface{
height: 140px;
width: 500%;
background: url('./assets/treeline.png');
display: block;
position: absolute;
bottom: 0%;
left: 0%;
background-repeat: repeat-x;
animation: moveRight 6s linear infinite;
}
.car{
position: absolute;
bottom: 6%;
left: 20%;
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);
}
}