Sauna Timer Element
One HTML tag puts a sauna round timer on any web page: time in the heat, a break, repeat, final cool-down. No dependencies, no build step, free under the MIT license.
<sauna-timer rounds="3" heat="10" rest="10"></sauna-timer>
Live element
Events it fires
Press Start, Skip ahead or Reset above. Each event carries the timer's state in event.detail.
- Nothing yet.
Add it to your site
Load the script once, anywhere on the page, then use the tag as often as you like.
Plain HTML
<script src="https://divelux.github.io/sauna-timer-element/sauna-timer.iife.js" defer></script>
<sauna-timer rounds="3" heat="10" rest="10"></sauna-timer>
As an ES module
<script type="module" src="https://divelux.github.io/sauna-timer-element/sauna-timer.js"></script>
With a bundler
npm install sauna-timer-element
import 'sauna-timer-element';
Attributes
| Attribute | What it sets | Range | Default |
|---|---|---|---|
rounds | Rounds in the heat | 1–6 | 3 |
heat | Minutes per round | 1–35 | 10 |
rest | Minutes of break between rounds | 1–30 | 10 |
cooldown | Minutes of final cool-down | 1–30 | same as rest |
muted | No beep until the visitor turns it on | present or not | not present |
heading | A title above the timer | any text | none |
credit | off hides the "Timer by DIVELUX" line | off | shown |
Values outside the range are pulled back into it, and junk falls back to the default, so a typo cannot break the page. The full reference, with methods, events, CSS custom properties and parts, is in the README.
A timer, not advice. The ranges are limits for the element, not recommendations. General guidance is to keep a single stay in a hot sauna to no more than 15–20 minutes (see Harvard Health Publishing on sauna safety), and people new to the heat usually start much shorter. How a person feels always outranks the clock. Not medical advice.
More free sauna tools