-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathev.css
More file actions
96 lines (87 loc) · 1.57 KB
/
Copy pathev.css
File metadata and controls
96 lines (87 loc) · 1.57 KB
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
/* styles.css */
body {
background-color: darkgreen;
margin: 0;
overflow: hidden;
}
#field {
position: relative;
height: 100vh;
}
#goalpost {
position: absolute;
left: 50%;
top: 10px;
transform: translateX(-50%);
font-size: 200px;
}
#striker {
position: absolute;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
font-size: 40px;
}
#football {
position: absolute;
bottom: 60px;
left: 50%;
transform: translateX(-50%);
font-size: 20px;
}
#goalkeeper {
position: absolute;
left: 50%;
top: 10px;
transform: translateX(-50%);
font-size: 150px;
}
.goal-line {
position: absolute;
width: 100%;
height: 2px;
background-color: white;
}
#goal-line-top {
top: 10vh;
}
#goal-line-bottom {
bottom: 10vh;
}
#goal-message {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 40px;
color: white;
}
/* Add this animation definition at the end of styles.css */
@keyframes shoot {
0% {
transform: translateY(0);
}
50% {
transform: translateY(-500px); /* Adjust the distance the ball should travel */
}
100% {
transform: translateY(0);
}
}
@keyframes goalkeeperMove {
0% {
left: 50%;
top: 40px; /* Adjust the top position as needed */
}
50% {
left: 25%;
top: 40px; /* Adjust the top position as needed */
}
100% {
left: 75%;
top: 40px; /* Adjust the top position as needed */
}
}
#goalkeeper {
animation: goalkeeperMove 1.5s ease-in-out infinite;
}