Paced breath — physiological sigh
Variant: Physiological sigh
A quick stress reset: a two-second inhale, a one-second top-up on top of it, a long six-second sigh out and a beat of rest. The first breath stops at 92% of the ring on purpose, so the disc visibly has room left and then visibly does not — the top-up is half the length and about a quarter of the travel, a sip rather than a second breath, and it gets its own instruction word because it is the one step a first-timer would not guess. The exhale is the file’s one characterful curve and it is a decay, not a sine: an unforced exhale is lungs recoiling, fastest at the start and tapering as the pressure runs out, so most of the volume leaves in two seconds and the last three barely move — the long empty tail is the point of the pattern. Ten seconds a cycle, short enough to run two or three in a rest timer between sets or tasks.
The source
A complete HTML document. Paste it into an empty .html file and it plays — no stylesheet, script, font, or image to fetch.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- The count is in seconds: a remix may slow the pace, never hurry it. -->
<meta name="animation-knobs" content="speed: 0.7-1" />
<title>Paced breath — physiological sigh</title>
<style>
:root {
/* Neutrals — fixed, never remixed. */
--ivory: #faf9f5;
--paper: #ffffff;
--oat: #e3dacc;
--slate: #141413;
/* Knobs — the remix API. A knob exists iff declared here and used below. */
--hue: 38.8;
--lift: 0;
--chroma: 1;
--round: 1;
--speed: 1;
/* Accents — derived from the knobs with the family's offsets baked in,
so one hue roll moves them together. Defaults reproduce the original hex. */
--clay: oklch(calc(0.6724 + var(--lift)) calc(0.1308 * var(--chroma)) var(--hue));
--clay-d: oklch(calc(0.5797 + var(--lift)) calc(0.127 * var(--chroma)) var(--hue));
--olive: oklch(
calc(0.6118 + var(--lift)) calc(0.0713 * var(--chroma)) calc(var(--hue) + 88.3)
);
--rust: oklch(
calc(0.5408 + var(--lift)) calc(0.1357 * var(--chroma)) calc(var(--hue) - 10.3)
);
/* Clock — a two-part inhale (two seconds, then a one-second top-up),
a six-second exhale and a one-second rest. 1% of the loop is 100ms. */
--cycle: 10s;
--t: calc(var(--cycle) / var(--speed));
/* The one characterful curve is the exhale, and it is a decay, not a
sine: an unforced exhale is lungs recoiling, fastest at the start
and tapering as the pressure behind it runs out. Most of the volume
leaves in the first two seconds and the last three barely move,
which is exactly the long empty tail the pattern is for. */
--ease-accent: cubic-bezier(0.2, 0.55, 0.3, 1);
/* Both inhales are pulls — quick to start, settling into their mark. */
--_ease-pull: cubic-bezier(0.3, 0.6, 0.5, 1);
--_disc: clamp(84px, 30vmin, 128px);
--_empty: 0.62;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
min-height: 100vh;
display: grid;
place-items: center;
background: var(--ivory);
font-family:
system-ui,
-apple-system,
'Segoe UI',
Roboto,
sans-serif;
color: var(--slate);
}
.card {
display: grid;
justify-items: center;
gap: clamp(8px, 2.6vmin, 14px);
width: min(340px, calc(100% - 26px));
padding: clamp(12px, 3.6vmin, 20px) clamp(14px, 4.4vw, 22px);
border: 1px solid var(--oat);
border-radius: calc(16px * var(--round));
background: var(--paper);
}
.head {
display: flex;
justify-content: space-between;
align-items: baseline;
width: 100%;
font-size: clamp(11.5px, 3.3vw, 13px);
color: color-mix(in srgb, var(--slate) 62%, transparent);
}
.head b {
font-weight: 600;
color: var(--slate);
}
.head span {
font-variant-numeric: tabular-nums;
}
/* The ring is where the breath is going. It never moves, so a first-time
reader sees the target before they have done anything — the guide does
not depend on remembering what "full" looked like last cycle. */
.lungs {
position: relative;
display: grid;
place-items: center;
width: var(--_disc);
height: var(--_disc);
}
.full,
.air {
position: absolute;
inset: 0;
border-radius: 50%;
}
/* Set 3px outside the disc's full size, so at the top of a breath
the two edges sit side by side instead of fusing into one fuzzy line. */
.full {
inset: -3px;
border: 1.5px dashed color-mix(in srgb, var(--slate) 22%, transparent);
}
.air {
border: 1.5px solid var(--clay);
background: color-mix(in srgb, var(--clay) 16%, var(--paper));
transform: scale(var(--_empty));
animation: lungs var(--t) linear infinite;
}
/* The first breath stops short of the ring on purpose, at 92%, and the
top-up is half its length and about a quarter of its travel — a sip,
not a second breath. The ring is what makes it legible: the disc
visibly has room left, then visibly does not. */
@keyframes lungs {
0% {
transform: scale(var(--_empty));
animation-timing-function: var(--_ease-pull);
}
20% {
transform: scale(0.92);
animation-timing-function: var(--_ease-pull);
}
30% {
transform: scale(1);
animation-timing-function: var(--ease-accent);
}
90%,
100% {
transform: scale(var(--_empty));
}
}
/* One strip holds the whole cycle's count, one cell per second, and
steps through it on the same clock as the disc — so the numeral cannot
drift from the breath. Digits cut, never roll: a count is read on the
frame it lands. */
.count {
position: relative;
height: 1em;
overflow: hidden;
font-size: clamp(22px, 7vmin, 30px);
font-weight: 600;
line-height: 1;
font-variant-numeric: tabular-nums;
color: var(--clay-d);
}
.count > span {
display: block;
animation: tick var(--t) steps(10, end) infinite;
}
.count b {
display: block;
height: 1em;
font-weight: inherit;
text-align: center;
}
@keyframes tick {
from {
transform: translateY(0);
}
to {
transform: translateY(-10em);
}
}
.say {
position: relative;
width: 100%;
height: 1.3em;
font-size: clamp(15px, 4.6vw, 18px);
font-weight: 600;
letter-spacing: -0.01em;
text-align: center;
}
.say > span {
position: absolute;
inset: 0;
opacity: 0;
}
/* Each instruction fades in over 240ms and out over 120ms ending on its
boundary. The top-up gets its own word because a second inhale on
top of a full one is the unfamiliar part — it is the instruction a
first-time reader would not guess. */
.say .in {
animation: say-in var(--t) linear infinite;
}
.say .top {
animation: say-top var(--t) linear infinite;
}
.say .out {
animation: say-out var(--t) linear infinite;
}
.say .rest {
animation: say-rest var(--t) linear infinite;
}
@keyframes say-in {
0% {
opacity: 0;
}
2.4%,
18.8% {
opacity: 1;
}
20%,
100% {
opacity: 0;
}
}
@keyframes say-top {
0%,
20% {
opacity: 0;
}
22.4%,
28.8% {
opacity: 1;
}
30%,
100% {
opacity: 0;
}
}
@keyframes say-out {
0%,
30% {
opacity: 0;
}
32.4%,
88.8% {
opacity: 1;
}
90%,
100% {
opacity: 0;
}
}
@keyframes say-rest {
0%,
90% {
opacity: 0;
}
92.4%,
98.8% {
opacity: 1;
}
100% {
opacity: 0;
}
}
/* The whole pattern, always on screen. The segments are sized by their
seconds and the fill runs linear because it is a clock; between them a
reader who has never seen box breathing can tell where they are and
what comes next without being told twice. */
.rail {
display: grid;
gap: 6px;
width: 100%;
}
.track {
position: relative;
height: 4px;
overflow: hidden;
border-radius: 999px;
background: var(--oat);
}
.fill {
position: absolute;
inset: 0;
background: var(--clay);
transform: scaleX(0);
transform-origin: left;
animation: run var(--t) linear infinite;
}
@keyframes run {
to {
transform: scaleX(1);
}
}
.ticks,
.labels {
display: flex;
}
.ticks {
position: absolute;
inset: 0;
}
.ticks i + i {
border-left: 2px solid var(--paper);
}
.ticks i,
.labels span {
flex: 1 1 0;
white-space: nowrap;
}
.ticks i:nth-child(1),
.labels span:nth-child(1) {
flex-grow: 2;
}
.ticks i:nth-child(3),
.labels span:nth-child(3) {
flex-grow: 6;
}
.labels {
font-size: clamp(11px, 3.1vw, 12px);
font-variant-numeric: tabular-nums;
color: color-mix(in srgb, var(--slate) 55%, transparent);
}
.labels span + span {
padding-left: 4px;
}
@media (prefers-reduced-motion: reduce) {
/* The disc stops growing and its fill carries the breath as density
instead, on the same keyframes. The cycle is not slowed — the count
is in seconds and the pace is the content. The top-up is the fastest
change here, one second, so it gets a real step (0.7 to 1) rather
than a flicker too faint to read. */
.air {
transform: none;
animation-name: lungs-dim;
}
@keyframes lungs-dim {
0% {
opacity: 0.32;
animation-timing-function: var(--_ease-pull);
}
20% {
opacity: 0.7;
animation-timing-function: var(--_ease-pull);
}
30% {
opacity: 1;
animation-timing-function: var(--ease-accent);
}
90%,
100% {
opacity: 0.32;
}
}
}
</style>
</head>
<body>
<div
class="card"
role="img"
aria-label="Physiological sigh guide: breathe in for two seconds, top up with a short second inhale, sigh out for six seconds, rest for one"
>
<div class="head" aria-hidden="true">
<b>Physiological sigh</b>
<span>2 + 1 · 6 · 1</span>
</div>
<div class="lungs" aria-hidden="true">
<i class="full"></i>
<i class="air"></i>
<div class="count">
<span
><b>1</b><b>2</b><b>+</b><b>1</b><b>2</b><b>3</b><b>4</b><b>5</b><b>6</b><b>·</b></span
>
</div>
</div>
<div class="say" aria-hidden="true">
<span class="in">Breathe in</span>
<span class="top">Top up</span>
<span class="out">Sigh it out</span>
<span class="rest">Rest</span>
</div>
<div class="rail" aria-hidden="true">
<div class="track">
<i class="fill"></i>
<div class="ticks"><i></i><i></i><i></i><i></i></div>
</div>
<div class="labels"><span>In 2</span><span>+1</span><span>Out 6</span><span>·</span></div>
</div>
</div>
</body>
</html>
The variant family
Same idea, one axis moved. Compare them side by side before you commit.