A calm, focused 4-7-8 breathing experience in your browser. ✨
Inhale 4s · Hold 7s · Exhale 8s
Designed for quick nervous-system reset and a smoother return to focus. 🫁
- Guided 4-7-8 breathing cycle with smooth phase transitions
- Animated orb visual that expands, holds, and contracts with each phase
- Subtle starfield background for a calm atmosphere
- Built-in round counter to track breathing cycles
- Helpful info modal explaining the science behind each step
- Responsive layout for desktop and mobile
- Accessibility touches: keyboard escape handling, live instruction updates, reduced-motion support
No build step needed.
- Clone or download this repository.
- Open
index.htmlin your browser.
Optional local server:
python3 -m http.server 8000Then visit http://localhost:8000.
- Press Start.
- Follow the instruction text: Breathe in → Hold → Breathe out.
- Watch the counter increase after each full round.
- Press Reset anytime to stop and return to zero.
- Tap the info icon for a quick science breakdown. 🧠
- HTML5
- CSS3 (animations, gradients, responsive design)
- Vanilla JavaScript (state machine + timing logic)
.
├── index.html
├── styles.css
├── script.js
└── demo.gif
The 4-7-8 pattern is commonly used to reduce stress and help regulate breathing rhythm. This app turns that method into a focused, minimal ritual you can use in under a minute. 🌿
Made with calm intent for moments that need a reset. 🤍
