-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
117 lines (116 loc) · 2.14 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-color: #212121;
}
.container {
width: 100%;
height: 100%;
padding: 80px 60px;
display: flex;
flex-direction: column;
gap: 60px;
}
.container-third {
display: flex;
flex-direction: column;
align-items: center;
}
#change-btn {
margin: 30px 30px;
padding: 10px 20px;
border: none;
color: #fff;
border-radius: 4px;
transition: 0.5s;
transition-property: box-shadow;
background: rgb(4, 8, 140);
box-shadow: 0 0 55px rgb(1, 55, 100)
}
#change-btn:hover {
box-shadow: 0 0 5px rgb(4, 8, 140),
0 0 25px rgb(4, 8, 140),
0 0 50px rgb(4, 8, 140),
0 0 100px rgb(4, 8, 140);
}
.traffic-light {
width: 90px;
display: flex;
flex-direction: column;
align-items: center;
background-color: #462b28;
border-radius: 10px;
padding: 18px;
}
.light {
width: 42px;
height: 42px;
border-radius: 50%;
margin: 5px;
opacity: 0.2;
}
.red {
background-color: #ff002b;
}
.yellow {
background-color: #ffcc00;
}
.green {
background-color: #00ff59;
}
.active {
box-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff;
opacity: 1;
}
.leg {
width: 20px;
height: 100px;
background-color: #462b28;
}
.road {
position: relative;
width: 100%;
height: 160px;
background: #525252;
transform-origin: bottom;
transform-style: preserve-3d;
transform: perspective(500px) rotateX(30deg);
}
.road::before {
content: '';
position: absolute;
top: 50%;
transform: translateY(-50%);
left: 0;
width: 100%;
height: 10px;
background: linear-gradient(90deg, #fff 0%, #fff 70%, #525252 70%, #525252 100%);
background-size: 120px;
animation: animacao 0.5s linear infinite;
}
@keyframes animacao {
0% {
background-position: 0px;
}
100% {
background-position: -120px;
}
}
.road::after {
content: '';
position: absolute;
width: 100%;
height: 30px;
background: #333;
bottom: -30px;
transform-origin: top;
transform: perspective(500px) rotateX(-25deg);
}
.shadow {
position: absolute;
bottom: -93px;
left: 50%;
transform: translateX(-50%);
width: 95%;
height: 60px;
background: linear-gradient(#000, transparent);
opacity: 0.5;
}