forked from IvanGav/ConmansGameOfLife
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstates.css
More file actions
60 lines (57 loc) · 1.31 KB
/
states.css
File metadata and controls
60 lines (57 loc) · 1.31 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
.state-0 {
background-color: #00000040;
}
.state-1 {
--hue: 48;
background: radial-gradient(hsl(var(--hue), 72%, 80%), hsl(var(--hue), 72%, 56%));
box-shadow: 0 0 10px hsl(var(--hue), 72%, 56%);
}
.state-2 {
--hue: 300;
background: radial-gradient(hsl(var(--hue), 72%, 80%), hsl(var(--hue), 72%, 56%));
box-shadow: 0 0 10px hsl(var(--hue), 72%, 56%);
}
.state-3 {
--hue: 100;
background: radial-gradient(hsl(var(--hue), 72%, 80%), hsl(var(--hue), 72%, 56%));
box-shadow: 0 0 10px hsl(var(--hue), 72%, 56%);
}
.state-4 {
--hue: 180;
background: radial-gradient(hsl(var(--hue), 72%, 80%), hsl(var(--hue), 72%, 56%));
box-shadow: 0 0 10px hsl(var(--hue), 72%, 56%);
}
.pop-out {
animation-name: pop-out-anim;
animation-duration: 3s;
animation-fill-mode: forwards;
}
@keyframes pop-out-anim {
0% {
transform: scale(0);
}
10% {
filter: brightness(110%);
transform: scale(1.1);
}
20% {
filter: brightness(110%);
transform: scale(1);
}
100% {
filter: brightness(100%);
}
}
.shrink {
animation-name: shrink-anim;
animation-duration: 0.15s;
animation-fill-mode: forwards;
}
@keyframes shrink-anim {
from {
transform: scale(1);
}
to {
transform: scale(0);
}
}