diff --git a/hugo-site/static/html/eventual_convergence_viz.html b/hugo-site/static/html/eventual_convergence_viz.html
index ca350908..c33ae31a 100644
--- a/hugo-site/static/html/eventual_convergence_viz.html
+++ b/hugo-site/static/html/eventual_convergence_viz.html
@@ -198,22 +198,21 @@
Freenet Eventual Convergence Simulation
.attr("stroke-width", 0.5);
});
- await messageGroup
- .transition()
- .duration(1000)
- .attr("transform", `translate(${target.x},${target.y})`)
- .remove()
- .end();
-
- // Add only new valid colors to the target node's history
+ // Add colors to target before animation
validColors.forEach(color => {
if (!target.data.receivedColors.includes(color)) {
target.data.receivedColors.push(color);
}
});
-
updateNodeColors(target);
- await checkAndPropagate(target);
+
+ // Then animate the message
+ await messageGroup
+ .transition()
+ .duration(1000)
+ .attr("transform", `translate(${target.x},${target.y})`)
+ .remove()
+ .end();
} finally {
// Clear animation flag when done
animationQueue.delete(animationKey);