-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgame.css
More file actions
119 lines (99 loc) · 1.78 KB
/
game.css
File metadata and controls
119 lines (99 loc) · 1.78 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
*{
margin: 0;
padding: 0;
background-color: whitesmoke;
text-align: center;
}
.hand{
height: 150px;
width: 150px;
object-fit:contain;
border:3px solid #333;
border-radius: 50%;
}
.sign{
height: 180px;
width: 150px;
cursor: pointer;
}
.move{
display: grid;
grid-template-columns: repeat(3,1fr);
}
#all{
margin:4rem;
display: grid;
column-gap: 5rem;
grid-template-columns: repeat(2,1fr);
}
h2{
grid-column-start: 1;
grid-column-end: 4;
}
.usr:hover{
border:7px solid #333;
}
h3{
display: flex;
justify-content: center;
column-gap: 2rem;
}
.score,.number{
display: flex;
flex-direction: column;
row-gap: 1.5rem;
word-spacing: .3rem;
}
.count{
font-size: 2.3rem;
}
/* Added Classes via JS */
.border{
border:7px solid #333;
}
.color{
color :purple;
}
.color2{
color : goldenrod;
}
/*Animation (Running Red & Green Line ) on h1 tag*/
h1{
color:maroon;
background-color: yellow;
height: 5rem;
line-height: 5rem;
position: relative;
}
body:hover {
h1::before {
content: "";
position: absolute;
width: 100%;
height: 4px;
background-color:red;
left: 0;
bottom: 20%;
border-radius: 7px;
/*Animation*/
animation-iteration-count: infinite;
animation-name: line;
animation-duration: 10S;
animation-fill-mode: forwards;
}
}
@keyframes line {
from {
left: 50%;
width: 0%;
}
50% {
left: 0;
width: 100%;
}
to {
left: 50%;
width: 0%;
background-color: green;
}
}