Skip to content

Commit a1d8a50

Browse files
authored
优化 react-flow 句柄的过渡效果,移除缩放效果,增加阴影效果 (#9)
1 parent a76e40d commit a1d8a50

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/index.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,12 @@
192192
border-radius: 50%;
193193
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
194194
cursor: crosshair !important;
195-
transition: transform 0.15s ease, background-color 0.15s ease;
195+
transition: background-color 0.15s ease, box-shadow 0.15s ease;
196196
}
197197

198198
.react-flow__handle:hover {
199-
transform: scale(1.22);
200199
background-color: #000000 !important;
200+
box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.12), 0 1px 4px rgba(0, 0, 0, 0.14);
201201
}
202202

203203
.react-flow__handle.custom-node-handle {
@@ -209,8 +209,8 @@
209209
}
210210

211211
.react-flow__handle.custom-node-handle:hover {
212-
transform: scale(1.3);
213212
background-color: #111827 !important;
213+
box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.12), 0 1px 4px rgba(0, 0, 0, 0.14);
214214
}
215215

216216
.react-flow__connection-path {

0 commit comments

Comments
 (0)