-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
84 lines (73 loc) · 1.71 KB
/
style.css
File metadata and controls
84 lines (73 loc) · 1.71 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
/* Variable declaration for color palette */
:root {
--first-bg-color: #43bdd9;
--second-bg-color: #9bf2ea;
--main-bg-color: rgb(201, 212, 214);
--main-text-color: rgb(29, 41, 60);
--secondary-text-color: rgb(29, 74, 123);
}
.header {
text-align: center;
}
.control-bar {
text-align: center;
}
#grid {
display: grid;
grid-template-columns: repeat(80, 20px);
grid-template-rows: repeat(auto-fill, 20px);
align-items: center;
justify-content: center;
}
.cell {
border: white 1px solid;
outline: 1px solid black;
outline-offset: -2px;
background-color: white;
aspect-ratio: 1;
}
.cell-visited {
animation-name: visitedAnimation;
animation-duration: 0.5s;
animation-timing-function: ease-in-out;
animation-delay: 0;
animation-direction: alternate;
animation-iteration-count: 1;
animation-fill-mode: forwards;
animation-play-state: running;
}
@keyframes visitedAnimation {
0% {
transform: scale(0.5);
background-color: rgba(0, 0, 66, 0.75);
border-radius: 100%;
}
100% {
transform: scale(1);
background-color: rgba(0, 190, 218, 0.75);
}
}
.cell-shortestpath {
animation-name: shortestPath;
animation-duration: 0.5s;
animation-timing-function: ease-out;
animation-delay: 0;
animation-direction: alternate;
animation-iteration-count: 1;
animation-fill-mode: forwards;
animation-play-state: running;
}
@keyframes shortestPath {
0% {
transform: scale(0.5);
background-color: rgb(255, 254, 106);
}
50% {
transform: scale(1.2);
background-color: rgb(255, 254, 106);
}
100% {
transform: scale(1);
background-color: rgb(255, 254, 106);
}
}