A serene clinical-daylight guided breathing ring using smooth cosine inhale/hold/exhale easing, outer SVG cycle progress arc, and live switching between Coherent 5-5, Box 4-4-4-4, and Relax 4-7-8.
// Drop the standalone breathing-coherence.html into /public/effects/breathing-coherence.html
// Or copy the HTML/CSS/JS tab directly into your component — zero external dependencies.
export function BreathingCoherenceEmbed() {
return (
<div className="relative min-h-[480px] w-full overflow-hidden rounded-2xl border border-white/10">
<iframe
src="/effects/breathing-coherence.html"
title="Guided Breathing Ring"
className="h-full min-h-[480px] w-full border-0"
loading="lazy"
/>
</div>
)
}Loading single-file HTML…
Build a single-file MedTech & Wellness Guided Breathing Coherence Ring using pure HTML, inline SVG, and vanilla JS on a calm glacial-porcelain canvas (#edf6f8) inspired by Apple Health and Calm. - Motion Craft: Animate a soft radial halo and frosted center dial using smooth cosine interpolation (0.5 - 0.5 * cos(u * PI)) synced with an outer SVG stroke-dashoffset cycle progress ring (#0d9488 → #06b6d4) and live countdown timer. - Clinical Presets: Segmented bottom pill dock switching cleanly across Coherent 5-5 (6 BPM), Box 4-4-4-4, and Relax 4-7-8, paired with clean vital summary chips (Cadence, HRV Est, State).
WHY THIS WORKS IN PRODUCTION
- True cosine physiological inhale/hold/exhale pacing with countdown timer
- 3 real clinical breathing protocols: Coherent 5-5, Box 4-4-4-4 & 4-7-8
- Ultra-lightweight 2.7 KB — runs smoothly on any mobile webview or PWA
- Clean Apple Health porcelain aesthetic built for healthcare trust
DROP-IN SPECS // WEB & MOBILE FIT








