Back to the library
Confluence sync
Variant: Standard
A two-way sync indicator. Two dashed streams, one in each source's colour, flow from opposite ends into a shared node, and their colours blend as they get close. Use it while local and remote changes are being merged, when a plain spinner would hide that there are two sides. The dashes move at a constant linear rate because this is ongoing work, not a response to a click. Two halos half a cycle apart ease out from the meeting point, so it always reads as active without ever flashing.
loadersyncmergesvgambient
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" />
<title>Confluence sync — standard</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; /* include ONLY if at least one border-radius is wrapped below */
--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
(#d97757 / #b85c3e / #788c5d / #b04a3f). */
--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 — every duration in the document runs off --t. */
--cycle: 3.2s; /* the authored master loop */
--t: calc(var(--cycle) / var(--speed));
--ease-out: cubic-bezier(0.23, 1, 0.32, 1); /* include only if used */
--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); /* include only if used */
--_brack: color-mix(in oklch, var(--clay) 50%, var(--olive));
/* Weight tokens. Dash + gap always totals 18px so the flow rate is identical across the family. */
--_stroke: 3px;
--_dash: 6.5px;
--_gap: 11.5px;
--_halo-w: 2px;
--_halo-peak: 0.5;
--_halo-reach: 1.9;
--_halo-fill: 0;
--_bed: 0.55;
}
* { box-sizing: border-box; margin: 0; }
body {
min-height: 100vh;
display: grid;
place-items: center;
background: var(--ivory);
color: var(--slate);
font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.card {
width: min(360px, 90vw);
background: var(--paper);
border: 1px solid var(--oat);
border-radius: calc(14px * var(--round));
padding: clamp(14px, 4vw, 22px);
display: grid;
gap: clamp(8px, 2.5vw, 14px);
}
.head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.title { font-size: clamp(14px, 3.8vw, 16px); font-weight: 600; }
.meta, .ends { font-size: clamp(11px, 3vw, 12px); opacity: 0.62; }
.ends { display: flex; justify-content: space-between; }
svg { display: block; width: 100%; height: auto; overflow: visible; }
.s-clay { stop-color: var(--clay); }
.s-olive { stop-color: var(--olive); }
.s-brack { stop-color: var(--_brack); }
.bed {
fill: none;
stroke: var(--oat);
stroke-width: var(--_stroke);
stroke-linecap: round;
opacity: var(--_bed);
}
.flow {
fill: none;
stroke-width: var(--_stroke);
stroke-linecap: round;
stroke-dasharray: var(--_dash) var(--_gap);
animation: flow var(--t) linear infinite;
}
/* Four whole dash periods per cycle: seamless loop, and both paths run toward the node. */
@keyframes flow { to { stroke-dashoffset: -72px; } }
.halo {
fill: var(--_brack);
fill-opacity: var(--_halo-fill);
stroke: var(--_brack);
stroke-width: var(--_halo-w);
vector-effect: non-scaling-stroke;
transform-box: fill-box;
transform-origin: center;
opacity: 0;
animation: halo var(--t) var(--ease-out) infinite;
}
.halo.late { animation-delay: calc(var(--t) / -2); }
@keyframes halo {
0% { opacity: var(--_halo-peak); transform: scale(0.9); }
70%, 100% { opacity: 0; transform: scale(var(--_halo-reach)); }
}
.node { fill: var(--_brack); stroke: var(--paper); }
.src.salt { fill: var(--clay); }
.src.fresh { fill: var(--olive); }
@media (max-width: 380px) {
.card { padding: 14px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
.flow { animation: rm-flow calc(var(--t) * 2) var(--ease-in-out) infinite; }
.halo { transform: scale(1.4); animation: rm-halo calc(var(--t) * 2) var(--ease-in-out) infinite; }
.halo.late { display: none; }
}
@keyframes rm-flow { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes rm-halo { 0%, 100% { opacity: 0; } 50% { opacity: calc(var(--_halo-peak) * 0.7); } }
</style>
</head>
<body>
<div class="card" role="status" aria-label="Merging changes from this device and the shared draft">
<div class="head">
<span class="title">Merging changes</span>
<span class="meta">14 edits</span>
</div>
<svg viewBox="0 0 300 80" aria-hidden="true">
<defs>
<linearGradient id="g-salt" gradientUnits="userSpaceOnUse" x1="20" y1="0" x2="150" y2="0">
<stop offset="0" class="s-clay" />
<stop offset="0.55" class="s-clay" />
<stop offset="1" class="s-brack" />
</linearGradient>
<linearGradient id="g-fresh" gradientUnits="userSpaceOnUse" x1="280" y1="0" x2="150" y2="0">
<stop offset="0" class="s-olive" />
<stop offset="0.55" class="s-olive" />
<stop offset="1" class="s-brack" />
</linearGradient>
</defs>
<path class="bed" d="M20 40 C60 22 100 58 150 40" />
<path class="bed" d="M280 40 C240 22 200 58 150 40" />
<path class="flow" stroke="url(#g-salt)" d="M20 40 C60 22 100 58 150 40" />
<path class="flow" stroke="url(#g-fresh)" d="M280 40 C240 22 200 58 150 40" />
<circle class="halo" cx="150" cy="40" r="7" />
<circle class="halo late" cx="150" cy="40" r="7" />
<circle class="src salt" cx="20" cy="40" r="3.5" />
<circle class="src fresh" cx="280" cy="40" r="3.5" />
<circle class="node" cx="150" cy="40" r="5" stroke-width="2" />
</svg>
<div class="ends"><span>This device</span><span>Shared draft</span></div>
</div>
</body>
</html>
The variant family
Same idea, one axis moved. Compare them side by side before you commit.