-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
117 lines (98 loc) · 1.54 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
body {
background: linear-gradient(to top, #F6A281, white)
}
#container {
height: 100vh;
}
#title {
display: block;
margin: 0 auto;
}
#bubble {
width: 25%;
position: absolute;
top: 10%;
}
@keyframes enter {
0% { right: 0px; }
50% { right: 250px; }
99% { right: 250px; }
100% {right: 0px;}
}
@keyframes grow{
0% { width: 400px; }
50% { width: 600px; }
99% { width: 600px; }
100% { width: 400px; }
}
@keyframes screech_in{
0% {
left: 100px;
}
15% { left: 210px;
top: 450px;
}
99% { left: 210px;
top: 450px;
}
100%{
left: -200px;
}
}
@keyframes rock {
0% { transform: rotateZ(2deg); }
50% { transform: rotateZ(-2deg); }
100% { transform: rotateZ(2deg); }
}
#billboard_container {
margin-top: 5%;
display: flex;
flex-direction: row;
justify-content: flex-end;
}
#billboard_container div {
width: 250px;
height: 200px;
align-self: flex-start;
position: relative;
overflow: hidden;
}
#billboard_container img {
position: absolute;
}
#billboard_container .front {
z-index: -1;
}
#billboard_container .scroll_up {
transform: translateY(-100%);
transition: 1s;
}
.billboard_fill {
position: relative;
height: auto;
z-index: -2;
}
#car1 {
position: absolute;
top: 400px;
right: 0px;
width: 400px;
}
#car2 {
position: absolute;
top: 400px;
left: -200px;
width: 400px;
}
.car_go {
position: absolute;
top: 400px;
animation: enter 4s forwards, grow 4s forwards, rock 0.2s 8 forwards;
width: 400px;
}
.car_2_go {
position: absolute;;
top: 400px;
animation: screech_in 3s 1.5s forwards;
width: 400px;
}