From 5c391d932c41d7bb1e613fa9a7952434500d917b Mon Sep 17 00:00:00 2001 From: Givou Date: Mon, 2 Nov 2026 18:28:11 +0100 Subject: [PATCH] Routing: soft signal pulse on connected crosspoints Co-Authored-By: Claude Opus 5.5 --- static/style.css | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/static/style.css b/static/style.css index 5758208..6dc4849 100644 --- a/static/style.css +++ b/static/style.css @@ -946,3 +946,20 @@ body.dashonly #btn-muteall { margin-left: auto; } body.dashonly .dlink { cursor: default; } .limled.gainlim { margin: 0 2px 0 auto; font-size: 10px; } .limled.barlim { margin: 0 2px; font-size: 10px; } +/* ---- routing: a soft pulse runs down from the input into the crosspoint, then out along the output */ +.xp.on .node { position: relative; z-index: 1; } +.xp.on::before, .xp.on::after { content: ""; position: absolute; pointer-events: none; --pulse: color-mix(in srgb, var(--cc) 35%, #fff); opacity: 0; } +.xp.on::before { top: 0; left: calc(50% - 1.5px); width: 3px; height: 50%; + background: linear-gradient(transparent, var(--pulse), transparent) 0 0 / 100% 16px no-repeat; animation: xpdown 2.8s linear infinite; } +.xp.on::after { top: calc(50% - 1.5px); left: 0; right: 0; height: 3px; + background: linear-gradient(90deg, transparent, var(--pulse), transparent) 50% 0 / 16px 100% no-repeat, + linear-gradient(90deg, transparent, var(--pulse), transparent) 50% 0 / 16px 100% no-repeat; animation: xpout 2.8s linear infinite; } +@keyframes xpdown { + 0% { background-position: 0 -16px; opacity: 0; } 8% { opacity: .9; } + 35% { background-position: 0 100%; opacity: .9; } 40%, 100% { background-position: 0 100%; opacity: 0; } +} +@keyframes xpout { + 0%, 35% { background-position: 50% 0, 50% 0; opacity: 0; } 42% { opacity: .9; } + 85% { opacity: .5; } 92%, 100% { background-position: 0% 0, 100% 0; opacity: 0; } +} +@media (prefers-reduced-motion: reduce) { .xp.on::before, .xp.on::after { animation: none; } }