Clock sentence footer
A stepped sentence broken by a huge live clock in brackets with a black waveform tile in the middle, a contact column with a rolling email link and round social rings, and the wordmark halves sliding together.
Part of the style
Ink Bloom Column
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/ink-bloom-column/footer/figma.html?palette=97bda901d5f7a150
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/ink-bloom-column/footer/figma.html?palette=97bda901d5f7a150 and pass that whole HTML document to the html_to_figma tool, so the part "Clock sentence footer" lands as editable layers in my open Figma file. Fonts come from Google Fonts: if a face is missing in Figma, pick the closest one.
Code
<style>
/* Goes after the pack's base.css */
:root {
--paper: #ffffff;
--ink: #54554a;
--mist: #f8f8f7;
--tint: rgba(84, 85, 74, 0.05);
--hairline: rgba(84, 85, 74, 0.1);
--ink-ghost: rgba(84, 85, 74, 0.1);
--ink-soft: rgba(84, 85, 74, 0.5);
--menu-1: #e3e2e0;
--menu-2: #eaeae8;
--menu-3: #f1f1f0;
--theme-slate: #dddcda;
--on-ink: #ffffff;
--theme-ember: #eccea2;
--theme-oxblood: #dec094;
--theme-lichen: #d2d1a5;
}
</style>
<footer class="footer">
<h2 class="footer__sentence footer__sentence--top" data-goo>
<span class="footer__line" data-line>Every sound</span>
<span class="footer__line footer__line--in" data-line>you hear</span>
<span class="footer__line footer__line--in" data-line>was first</span>
</h2>
<p class="footer__clock" aria-label="Local time in Leipzig">
<span class="footer__part footer__part--hours" data-goo><span>(</span><time class="footer__hours">21</time></span>
<span class="footer__colon footer__colon--first" aria-hidden="true">:</span>
<span class="footer__tile"><canvas class="footer__wave" role="img" aria-label="A live waveform"></canvas></span>
<span class="footer__colon footer__colon--second" aria-hidden="true">:</span>
<span class="footer__part footer__part--minutes" data-goo><time class="footer__minutes">47</time><span>)</span></span>
</p>
<h2 class="footer__sentence footer__sentence--bottom" data-goo>
<span class="footer__line footer__line--in" data-line>a silence</span>
<span class="footer__line footer__line--deep" data-line>waiting</span>
<span class="footer__line footer__line--in" data-line>its turn.</span>
</h2>
<div class="footer__contact">
<p class="footer__note">Available for selected<br />projects from March</p>
<p class="footer__note">Write directly to:<br /><a class="footer__mail" href="#" data-roll>hello@nachklang.studio</a></p>
</div>
<ul class="footer__social" aria-label="Elsewhere">
<li><a class="footer__ring" href="#" aria-label="Listen to the reel"><svg viewBox="0 0 12 12" aria-hidden="true"><path d="M4 2.5v7l6-3.5z" /></svg></a></li>
<li><a class="footer__ring" href="#" aria-label="Read the notes"><svg viewBox="0 0 12 12" aria-hidden="true"><path d="M2.5 4h7M2.5 6h7M2.5 8h4.5" /></svg></a></li>
<li><a class="footer__ring" href="#" aria-label="Archive of sounds"><svg viewBox="0 0 12 12" aria-hidden="true"><path d="M1.5 6h1.5l1-3 2 6 1.5-4.5 1 1.5h2" /></svg></a></li>
</ul>
<div class="footer__base">
<p class="footer__small">’26 © All sounds kept</p>
<p class="footer__name" aria-label="nachklang"><span class="footer__half">nach</span><span class="footer__half">klang</span></p>
<p class="footer__small footer__small--right">made w/ patience</p>
</div>
</footer>
<style>
.footer {
position: relative;
display: grid;
grid-template-columns: repeat(8, minmax(0, 1fr));
column-gap: var(--gap);
padding: var(--space-l) var(--edge) var(--edge);
overflow: clip;
background: var(--paper);
}
.footer p, .footer h2 { margin: 0; font-weight: inherit; }
.footer__sentence,
.footer__clock,
.footer__name {
font-size: var(--text-xl);
line-height: var(--leading-xl);
letter-spacing: var(--tracking-xl);
}
.footer__sentence { grid-column: 3 / -1; }
.footer__line { display: block; }
.footer__line--in { padding-left: calc((100% - 5 * var(--gap)) / 6 + var(--gap)); }
.footer__line--deep { padding-left: calc(((100% - 5 * var(--gap)) / 6 + var(--gap)) * 1.6); }
/* The clock spreads across the full grid with the waveform tile at its centre. */
.footer__clock {
grid-column: 1 / -1;
display: grid;
grid-template-columns: subgrid;
align-items: center;
margin: var(--space-l) 0 !important;
}
.footer__part { display: flex; gap: 0.12em; }
.footer__part--hours { grid-column: 1 / span 2; }
.footer__part--minutes { grid-column: 7 / -1; justify-self: end; }
.footer__colon--first { grid-column: 3; justify-self: center; }
.footer__colon--second { grid-column: 6; justify-self: center; }
.footer__tile {
grid-column: 4 / span 2;
justify-self: center;
width: max(72px, 5vw);
aspect-ratio: 3 / 4;
background: var(--ink);
}
.footer__wave { width: 100%; height: 100%; color: var(--paper); }
.footer__contact {
grid-column: 2 / span 2;
display: grid;
gap: var(--space-m);
align-self: end;
margin-top: var(--space-l);
}
.footer__mail {
display: inline-block;
position: relative;
color: inherit;
text-decoration: none;
vertical-align: top;
padding: 15px 0;
margin: -15px 0;
}
.footer__mail::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: 13px;
height: var(--stroke);
background: currentColor;
transform-origin: right;
transition: scale var(--dur-s) var(--ease-in-out);
}
.footer__mail:is(:hover, :focus-visible)::after { scale: 0 1; }
.footer__mail:focus-visible { outline: var(--stroke) solid var(--ink); outline-offset: -11px; }
.footer__roll { display: inline-grid; overflow: clip; vertical-align: top; white-space: pre; }
.footer__copy { grid-area: 1 / 1; justify-self: start; }
.footer__char {
display: inline-block;
transition: translate var(--dur-s) var(--ease-in-out);
transition-delay: calc(var(--back) * var(--roll-spread));
}
.footer__copy + .footer__copy .footer__char { translate: 0 100%; }
.footer__mail:is(:hover, :focus-visible) .footer__char { translate: 0 -100%; transition-delay: calc(var(--fore) * var(--roll-spread)); }
.footer__mail:is(:hover, :focus-visible) .footer__copy + .footer__copy .footer__char { translate: 0 0; }
.footer__spoken { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.footer__social {
grid-column: 4 / span 2;
align-self: end;
justify-self: center;
display: flex;
margin: var(--space-l) 0 0;
padding: 0;
list-style: none;
}
.footer__ring {
display: grid;
place-items: center;
width: var(--tap);
height: var(--tap);
color: var(--ink);
}
.footer__ring svg {
width: max(24px, 1.6667vw);
height: max(24px, 1.6667vw);
padding: 25%;
border: var(--stroke) solid var(--ink);
border-radius: var(--radius-round);
fill: currentColor;
stroke: currentColor;
stroke-width: 1.2;
stroke-linecap: round;
stroke-linejoin: round;
transition: background var(--dur-s) var(--ease-out), color var(--dur-s) var(--ease-out);
}
.footer__ring svg path[d^="M2.5"],
.footer__ring svg path[d^="M1.5"] { fill: none; }
.footer__ring:is(:hover, :focus-visible) svg { background: var(--ink); color: var(--on-ink); }
.footer__ring:focus-visible { outline: none; }
.footer__ring:focus-visible svg { outline: var(--stroke) solid var(--ink); outline-offset: 3px; }
/* The two halves of the wordmark meet in the middle once the footer is fully in view. */
.footer__base {
grid-column: 1 / -1;
display: grid;
grid-template-columns: 1fr auto;
align-items: end;
row-gap: var(--space-s);
margin-top: var(--space-l);
}
.footer__name {
grid-column: 1 / -1;
grid-row: 1;
display: flex;
justify-content: space-between;
color: var(--ink-ghost);
transition: color var(--dur-l) var(--ease-in-out);
}
.footer__half {
translate: var(--shift, 0) 0;
transition: translate var(--dur-l) var(--ease-in-out);
}
.footer.is-joined .footer__name { color: var(--ink); }
.footer__small { grid-row: 2; }
.footer__small--right { justify-self: end; }
@media (max-width: 47.99rem) {
.footer { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.footer__sentence { grid-column: 1 / -1; }
.footer__clock { display: flex; justify-content: space-between; }
.footer__tile { width: max(48px, 14vw); }
.footer__contact { grid-column: 1 / -1; }
.footer__social { grid-column: 1 / -1; justify-self: start; margin-left: -10px; margin-top: var(--space-m); }
}
@media (prefers-reduced-motion: reduce) {
.footer__char, .footer__half, .footer__name { transition: none; }
}
</style>
<script>
(() => {
/* Goo reveal: each line starts as a heavy blur through a hard alpha threshold and grows out of ink blobs.
Blocks marked data-goo reveal when they come into view; their data-line children follow each other. */
function revealOnView(root) {
if (matchMedia('(prefers-reduced-motion: reduce)').matches) return;
const styles = getComputedStyle(root);
const time = (name) => parseFloat(styles.getPropertyValue(name)) * 1000;
const durL = time('--dur-l'), stagger = time('--stagger');
const most = parseFloat(styles.getPropertyValue('--goo-blur'));
const [x1, y1, x2, y2] = styles.getPropertyValue('--ease-out').match(/-?[\d.]+/g).map(Number);
const curve = (a, b, t) => 3 * a * t * (1 - t) ** 2 + 3 * b * t * t * (1 - t) + t ** 3;
const easeOut = (x) => {
let low = 0, high = 1, t = x;
for (let step = 0; step < 24; step += 1) { t = (low + high) / 2; if (curve(x1, x2, t) < x) low = t; else high = t; }
return curve(y1, y2, t);
};
const defs = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
defs.setAttribute('aria-hidden', 'true');
defs.style.cssText = 'position:absolute;width:0;height:0;overflow:hidden';
root.prepend(defs);
const prepare = (line) => {
const ns = 'http://www.w3.org/2000/svg';
const filter = document.createElementNS(ns, 'filter');
const blur = document.createElementNS(ns, 'feGaussianBlur');
const matrix = document.createElementNS(ns, 'feColorMatrix');
filter.id = `footer-goo-${Math.random().toString(36).slice(2, 9)}`;
Object.entries({ x: '-25%', y: '-25%', width: '150%', height: '150%', 'color-interpolation-filters': 'sRGB' }).forEach(([key, value]) => filter.setAttribute(key, value));
blur.setAttribute('in', 'SourceGraphic');
matrix.setAttribute('type', 'matrix');
filter.append(blur, matrix);
defs.append(filter);
const scale = Math.max(0.3, parseFloat(getComputedStyle(line).fontSize) / 90);
line._goo = (deviation, amp, offset) => {
blur.setAttribute('stdDeviation', (deviation * scale).toFixed(2));
matrix.setAttribute('values', `1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 ${amp} ${offset}`);
};
line._goo(most, 20, -8);
line.style.filter = `url(#${filter.id})`;
};
const play = (line, delay) => {
const begin = performance.now() + delay;
const frame = (now) => {
const elapsed = now - begin;
if (elapsed < 0) { requestAnimationFrame(frame); return; }
const blurDone = Math.min(1, elapsed / durL);
const threshold = Math.min(1, Math.max(0, (elapsed - durL * 0.65) / (durL * 0.35)));
line._goo(most * (1 - easeOut(blurDone)), 20 - 19 * threshold, -8 + 8 * threshold);
if (blurDone < 1) requestAnimationFrame(frame); else line.style.filter = '';
};
requestAnimationFrame(frame);
};
const linesOf = (block) => {
const lines = [...block.querySelectorAll('[data-line]')];
return lines.length ? lines : [block];
};
const blocks = [...root.querySelectorAll('[data-goo]')];
blocks.forEach((block) => linesOf(block).forEach(prepare));
const seen = new IntersectionObserver((entries) => {
entries.filter((entry) => entry.isIntersecting).forEach((entry, order) => {
seen.unobserve(entry.target);
linesOf(entry.target).forEach((line, index) => play(line, (order + index) * stagger));
});
}, { threshold: 0.1 });
blocks.forEach((block) => seen.observe(block));
}
function buildRoll(link) {
const text = link.textContent.trim();
const roll = document.createElement('span');
roll.className = 'footer__roll';
roll.setAttribute('aria-hidden', 'true');
const last = Math.max(1, text.length - 1);
for (let copy = 0; copy < 2; copy += 1) {
const line = document.createElement('span');
line.className = 'footer__copy';
[...text].forEach((letter, index) => {
const char = document.createElement('span');
char.className = 'footer__char';
char.textContent = letter;
char.style.setProperty('--fore', index / last);
char.style.setProperty('--back', (last - index) / last);
line.append(char);
});
roll.append(line);
}
const spoken = document.createElement('span');
spoken.className = 'footer__spoken';
spoken.textContent = text;
link.replaceChildren(roll, spoken);
}
function runClock(root) {
const hours = root.querySelector('.footer__hours');
const minutes = root.querySelector('.footer__minutes');
const pad = (value) => String(value).padStart(2, '0');
const update = () => {
const now = new Date();
hours.textContent = pad(now.getHours());
minutes.textContent = pad(now.getMinutes());
hours.dateTime = minutes.dateTime = `${pad(now.getHours())}:${pad(now.getMinutes())}`;
};
update();
setInterval(update, 1000);
}
/* A waveform that breathes inside the black tile, drawn only while the tile is on screen. */
function runWave(canvas) {
const still = matchMedia('(prefers-reduced-motion: reduce)');
const context = canvas.getContext('2d');
let frame = 0;
const paint = (seconds) => {
const width = canvas.clientWidth, height = canvas.clientHeight;
context.clearRect(0, 0, width, height);
context.fillStyle = getComputedStyle(canvas).color;
const bars = 9;
const step = width / (bars + 1);
for (let bar = 0; bar < bars; bar += 1) {
const swing = Math.sin(seconds * 2.1 + bar * 0.9) * Math.sin(seconds * 0.7 + bar * 0.35);
const length = height * (0.1 + 0.32 * Math.abs(swing));
context.fillRect(step * (bar + 1) - 1.25, height / 2 - length, 2.5, length * 2);
}
};
const fit = () => {
const density = Math.min(2, devicePixelRatio || 1);
canvas.width = canvas.clientWidth * density;
canvas.height = canvas.clientHeight * density;
context.setTransform(density, 0, 0, density, 0, 0);
paint(performance.now() / 1000);
};
const tick = (now) => { paint(now / 1000); frame = requestAnimationFrame(tick); };
new ResizeObserver(fit).observe(canvas);
new IntersectionObserver(([entry]) => {
cancelAnimationFrame(frame);
if (entry.isIntersecting && !still.matches) frame = requestAnimationFrame(tick);
}).observe(canvas);
}
function joinName(root) {
const name = root.querySelector('.footer__name');
const [left, right] = root.querySelectorAll('.footer__half');
const measure = () => {
const box = name.getBoundingClientRect();
const total = left.offsetWidth + right.offsetWidth;
const start = (box.width - total) / 2;
left.style.setProperty('--shift', root.classList.contains('is-joined') ? `${start}px` : '0px');
right.style.setProperty('--shift', root.classList.contains('is-joined') ? `${start + left.offsetWidth - (box.width - right.offsetWidth)}px` : '0px');
};
new ResizeObserver(measure).observe(name);
document.fonts.ready.then(measure);
new IntersectionObserver(([entry]) => {
root.classList.toggle('is-joined', entry.isIntersecting);
measure();
}, { threshold: 1 }).observe(name);
}
document.querySelectorAll('.footer').forEach((root) => {
root.querySelectorAll('[data-roll]').forEach(buildRoll);
runClock(root);
root.querySelectorAll('.footer__wave').forEach(runWave);
joinName(root);
revealOnView(root);
});
})();
</script>