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
|
#vis {
height: 100%;
}
.node {
stroke: black;
stroke-width: 3px;
stroke-linejoin: round;
filter: drop-shadow(-1px 1px 2px rgba(0, 0, 0, .4));
}
.worker {
fill: #ECB172;
}
.scheduler {
fill: #c5c1ff
}
.projectile {
stroke-width: 4;
stroke-linecap: round;
fill: transparent;
stroke-dasharray: 20 1000;
stroke-dashoffset: 0;
animation: shoot 0.5s linear infinite;
}
.transfer {
stroke-width: 4;
stroke-linecap: round;
fill: transparent;
stroke-dasharray: 10;
stroke-dashoffset: 10;
animation: transfer 1s linear infinite;
}
@keyframes transfer {
from {
stroke-dashoffset: -100;
}
to {
stroke-dashoffset: 100;
}
}
@keyframes shoot {
from {
stroke-dashoffset: 0;
}
to {
stroke-dashoffset: 1000;
}
}
|