Commit 20e96ba7 authored by Aryan Noshirvnai's avatar Aryan Noshirvnai

Add the listening-ring/equalizer keyframes for Discovery's continuous mic animation

Got left out of the continuous-listen commit; belongs with it.
parent fbb2ca03
Pipeline #1282 failed with stages
...@@ -213,6 +213,50 @@ ...@@ -213,6 +213,50 @@
} }
} }
/* Discovery's "listening" state (mic capture, 5s window) - previously a single Tailwind
animate-ping ring, which reads as one static blip rather than something actively capturing
sound. Two effects layered together instead: a continuous outward ripple (three copies of the
same ring, staggered via animation-delay, so a new one starts before the last one fades - see
Discovery.tsx) and a small live-looking equalizer of bars with per-bar delay/duration so they
never move in lockstep, next to the countdown. Neither is driven by the real microphone input
(the 5-second capture is a fixed local window, not analysed client-side) - this is deliberately
presented as ambient "listening" motion, not a literal level meter. */
@keyframes listen-ring {
0% {
transform: scale(0.85);
opacity: 0.45;
}
100% {
transform: scale(1.7);
opacity: 0;
}
}
.animate-listen-ring {
animation: listen-ring 1.8s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}
@keyframes listen-bar {
0%, 100% {
transform: scaleY(0.35);
}
50% {
transform: scaleY(1);
}
}
.animate-listen-bar {
animation: listen-bar 900ms ease-in-out infinite;
transform-origin: bottom;
}
@media (prefers-reduced-motion: reduce) {
.animate-listen-ring,
.animate-listen-bar {
animation: none;
}
}
/* Reskin the native range input used for the player's seek bar - kept as a real /* Reskin the native range input used for the player's seek bar - kept as a real
<input type="range"> rather than a custom div-based slider so keyboard stepping, pointer <input type="range"> rather than a custom div-based slider so keyboard stepping, pointer
dragging, and screen reader announcements all come for free from the platform. The filled dragging, and screen reader announcements all come for free from the platform. The filled
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment