-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNode.css
More file actions
104 lines (88 loc) · 2.04 KB
/
Node.css
File metadata and controls
104 lines (88 loc) · 2.04 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
.node {
width: 25px;
height: 25px;
outline: 1px solid black;
display: inline-block;
}
.node-finish {
background-color: red;
}
.node-start {
background-color: green;
}
.node-visited {
animation-name: visitedAnimation;
animation-duration: 1.5s;
animation-timing-function: ease-out;
animation-delay: 0s;
animation-direction: alternate;
animation-iteration-count: 1;
animation-fill-mode: forwards;
animation-play-state: running;
}
@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);
}
}
.node-wall {
animation-name: turnWall;
animation-duration: 1.5s;
animation-timing-function: ease-out;
animation-delay: 0s;
animation-direction: alternate;
animation-iteration-count: 1;
animation-fill-mode: forwards;
animation-play-state: running;
}
.node-shortest-path {
animation-name: shortestPath;
animation-duration: 0.25s;
animation-timing-function: ease-out;
animation-delay: 0s;
animation-direction: alternate;
animation-iteration-count: 1;
animation-fill-mode: forwards;
animation-play-state: running;
}
@keyframes turnWall {
0% {
transform: scale(0.6);
background-color: rgb(12, 53, 71);
}
50% {
transform: scale(1.2);
background-color: rgb(12, 53, 71);
}
100% {
transform: scale(1);
background-color: rgb(12, 53, 71);
}
}
@keyframes shortestPath {
0% {
transform: scale(0.6);
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);
}
}