-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApps.css
More file actions
94 lines (79 loc) · 1.7 KB
/
Copy pathApps.css
File metadata and controls
94 lines (79 loc) · 1.7 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
/* --- Grid and Core Layout --- */
.node {
width: 25px;
height: 25px;
border: 1px solid rgb(175, 216, 248);
box-sizing: border-box;
transition: background-color 0.2s ease;
user-select: none;
}
/* --- Static Node States --- */
.node-start {
background-color: #00ff00;
border: 2px solid white;
}
.node-finish {
background-color: #ff0000;
border: 2px solid white;
}
.node-wall {
background-color: rgb(12, 53, 71);
animation: wallAnimation 0.3s ease-out forwards;
}
/* --- Dynamic Algorithm States --- */
.node-visited {
animation: visitedAnimation 1.5s ease-out forwards;
}
.node-shortest-path {
background-color: yellow !important;
animation: shortestPathAnimation 0.5s ease forwards;
}
/* --- Wall Animation --- */
@keyframes wallAnimation {
0% {
transform: scale(0.3);
background-color: rgb(12, 53, 71);
border-radius: 100%;
}
50% {
transform: scale(1.2);
}
100% {
transform: scale(1);
}
}
/* --- Visited Node Animation --- */
@keyframes visitedAnimation {
0% {
transform: scale(0.3);
background-color: rgba(0, 0, 66, 0.75);
border-radius: 100%;
}
50% {
background-color: rgba(17, 104, 217, 0.75);
}
75% {
transform: scale(1.2);
background-color: rgba(0, 217, 159, 0.75);
}
100% {
transform: scale(1);
background-color: rgba(0, 190, 218, 0.75);
border: 1px solid rgba(175, 216, 248, 0.5);
}
}
/* --- Shortest Path Animation --- */
@keyframes shortestPathAnimation {
0% {
transform: scale(0.6);
background-color: rgb(255, 254, 106);
}
50% {
transform: scale(1.2);
background-color: rgb(255, 200, 0);
}
100% {
transform: scale(1);
background-color: rgb(255, 254, 106);
}
}