Extensions/ComfyUI Animated Links
ComfyUI Extension

ComfyUI Animated Links

Visual enhancement extension that adds animated arrows to links on hover and highlights Set/Get node pairs.

By Bob-Bar-B-Que·Created 8 months ago·Updated 10 days ago· 4
Bob-Bar-B-Que/ComfyUI-AnimatedLinks
Nodes—
On cloudLocal install
Stars4
Updated10 days ago
Readme

ComfyUI-AnimatedLinks ✨

A visual enhancement extension for ComfyUI that adds animated arrows to links on hover and highlights Set/Get node pairs.

ComfyUI Version License Frontend Ukraine


🌻 Features

<!-- Replace with actual screenshots/webp when ready -->

| Feature | Preview | |---|---| | 🌊 Animated arrows on hover | <video src="https://github.com/user-attachments/assets/189f020e-0b3f-4464-8b6e-aaec55aa47af" controls loop muted width="400"></video> | | 🌻 Set/Get node highlighting | <video src="https://github.com/user-attachments/assets/b6036154-6adb-4478-b8d0-a833cac629f3" controls loop muted width="400"></video> |


🌊 Animated Link Arrows

  • Hover over any node to animate all its connected links
  • Rainbow colored moving arrows that show data flow direction
  • Arrow count scales dynamically with link length — short links get fewer arrows, long links get more
  • Consistent animation speed regardless of link length
  • Beautiful glow effect with colored shadows

🌾 Set/Get Node Highlighting

  • Hover over a SetNode → highlights it in yellow + highlights all matching GetNodes in cyan
  • Hover over a GetNode → highlights it in cyan (pulsing) + highlights the corresponding SetNode in yellow
  • Works with collapsed nodes — highlight adapts to the actual node shape
  • Compatible with KJNodes Set/Get nodes

⚡ Performance

  • Only renders when mouse is over a node — zero overhead when idle
  • Uses ComfyUI's native rendering pipeline
  • Compatible with ComfyUI Frontend v1.41+

📦 Installation

Option 1: ComfyUI Manager (Recommended)

  1. Open ComfyUI Manager
  2. Click Install Custom Nodes
  3. Search for ComfyUI-AnimatedLinks
  4. Click Install
  5. Restart or run ComfyUI.

Option 2: Git Clone

cd ComfyUI/custom_nodes/
git clone https://github.com/Bob-Bar-B-Que/ComfyUI-AnimatedLinks.git

Restart or run ComfyUI.

Option 3: Manual Install

  1. Download this repository as ZIP (Code → Download ZIP)
  2. Extract into ComfyUI/custom_nodes/ComfyUI-AnimatedLinks/
  3. Make sure the folder contains __init__.py and web/animated_links.js
  4. Run ComfyUI

Option 4: Portable / Windows

  1. Download ZIP and extract to:
    ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-AnimatedLinks\
    
  2. Restart or run ComfyUI.

🌻 How to Use

Animated Arrows

Simply hover your mouse over any node — all connected links will animate with flowing directional arrows.

🌾 Set/Get Highlighting

  • Install KJNodes to use Set/Get nodes
  • Hover over a SetNode to see which GetNodes use the same value
  • Hover over a GetNode to see where the value comes from

⚙️ Configuration

You can tweak the animation by editing the CONFIG object at the top of web/animated_links.js:

const CONFIG = {
  arrowSize: 7,          // Size of arrow triangles
  arrowSpacing: 120,     // Minimum distance between arrows (graph pixels)
  dotSpeed: 0.0008,      // Animation speed
  rainbow: true,         // true = rainbow colors, false = fixed color
  fixedColor: "#00cfff", // Color when rainbow is false
  glowWidth: 8,          // Width of the glow line
  glowBlur: 18,          // Intensity of the glow effect
};

🐞 Troubleshooting

If nothing animates, open the browser console (F12) and run:

AnimatedLinks.debug()

Please include its output when reporting an issue.


📋 Changelog

v2.0 — Current

  • 🛠️ Fixed compatibility with newer ComfyUI frontends (tested against 1.61)
  • 🌊 Link geometry is now captured through the prototype, so it survives workflow/tab/subgraph changes
  • 🧩 Works with Nodes 2.0 (Vue nodes) as well as the classic canvas
  • 🔁 Fallback geometry for links the renderer did not report, support for reroutes and link render modes
  • 🐞 Added AnimatedLinks.debug() for diagnostics

v1.0

  • 🌊 Animated directional arrow triangles
  • 🌾 Dynamic arrow count based on link length
  • ⚡ Normalized animation speed across all link lengths
  • 🌻 Set/Get node pair highlighting with pulsing effect
  • 🇺🇦 Full compatibility with ComfyUI Frontend 1.41+
  • Uses real ComfyUI render pipeline for accurate bezier curves

🌻 Support the Project

If this extension helps your workflow, consider supporting a Ukrainian developer 🇺🇦

🌻 Donatello (Ukrainian platform)

Donatello

🌾 Monobank

Scan the QR code or click on it to open the bank:

Monobank QR

🪙 Crypto — USDT TRC20

Scan the QR code or click on it to copy the address:

USDT TRC20 QR


📄 License

MIT License — free to use, modify and distribute.


🌾 Credits