feat(edges): animated prop

This commit is contained in:
moklick
2019-07-25 16:03:50 +02:00
parent d094f5f312
commit 064f7d9c75
7 changed files with 45 additions and 31 deletions
+9
View File
@@ -54,6 +54,15 @@
&.selected {
stroke: #ff5050;
}
&.animated {
stroke-dasharray: 5;
animation: dashdraw 0.5s linear infinite;
}
}
@keyframes dashdraw {
from {stroke-dashoffset: 10}
}
.react-graph__nodes {