From d45b8bc2fb568c0bc2ad1af7d632b9da192c8e11 Mon Sep 17 00:00:00 2001 From: James Smith Date: Sun, 29 Mar 2026 14:35:45 +0100 Subject: [PATCH] feat(bluetooth): CSS animated radar sweep with trailing glow arc Replaces the requestAnimationFrame loop in proximity-radar.js with a CSS @keyframes rotation on .bt-radar-sweep, mirroring the WiFi radar pattern. Adds two trailing arc paths for a glow effect and updates setPaused() to toggle animationPlayState instead of the rAF flag. Co-Authored-By: Claude Sonnet 4.6 --- static/css/index.css | 11 ++++++ static/js/components/proximity-radar.js | 51 +++++++------------------ 2 files changed, 25 insertions(+), 37 deletions(-) diff --git a/static/css/index.css b/static/css/index.css index 59be380..82b2464 100644 --- a/static/css/index.css +++ b/static/css/index.css @@ -4408,6 +4408,17 @@ header h1 .tagline { justify-content: center; } +/* Bluetooth radar — CSS sweep animation (replaces rAF loop in proximity-radar.js) */ +.bt-radar-sweep { + transform-origin: 140px 140px; + animation: bt-radar-rotate 3s linear infinite; +} + +@keyframes bt-radar-rotate { + from { transform: rotate(0deg); } + to { transform: rotate(360deg); } +} + /* Bluetooth Device Detail Panel */ .bt-detail-panel { background: var(--bg-tertiary); diff --git a/static/js/components/proximity-radar.js b/static/js/components/proximity-radar.js index c08f338..7f71cbd 100644 --- a/static/js/components/proximity-radar.js +++ b/static/js/components/proximity-radar.js @@ -73,6 +73,9 @@ const ProximityRadar = (function() { + + + @@ -94,10 +97,15 @@ const ProximityRadar = (function() { }).join('')} - - + + + + + +