Voice Input Pulse
A mic button that ripples while listening, with a live waveform
Create a voice input button with a listening pulse. A circular mic button (58px). Tapping it toggles listening. While listening: the button turns the accent color (animate background over 300ms), gently breathes (scale 1 → 1.06 → 1 on a 1.1s loop), and emits expanding rings: 2px-bordered circles that start at the button's size and scale to 2.1x while fading from 50% to 0 opacity over 1.4s, repeating with a 0.7s offset between two rings, easing ease-out. Below the button, a row of 7 thin bars (4px wide, rounded) acts as a waveform: idle they are 4px tall and grey; while listening each bar animates its height through an irregular pattern (roughly 35% → 100% → 50% → 85% of its own max, maxima between 14 and 32px) on a 0.9s loop with a 0.08s stagger, so the wave looks alive rather than synchronized. A status caption crossfades between "Tap to speak" and "Listening…". Accessibility: the button uses aria-pressed for its toggle state and a matching aria-label; pressing it scales down to 92% for tactile feedback. If prefers-reduced-motion is set, skip the rings, the breathing, and the waveform motion; show state with color and text only. Build the component, not this demo of it. - Ambient motion that IS the component may loop: a drifting background, a marquee, a spinner while something is genuinely loading. - Do not add any timer, interval, loop or script that performs a person's action by itself. No auto-hover, no auto-click, no cycling through states, no pretend submitting, no replaying the interaction on a schedule. - Every state that answers a person waits for a real event from that person. - Placeholder copy and sample content are welcome. Simulated behaviour is not.