Difference Deck
A white first screen with a giant tight grotesque wordmark across the bottom, a deck of pictures that shuffles in the middle and then leaves one card bouncing around like a screensaver, inverting the letters it passes over, followed by black rooms of small grey Swiss text in ruled rows and big flat-colour work cards. Suits one-person design, craft and object practices that want a quiet grid with one loud toy on top.
Parts
Grid masthead
Eight-column header: a dot, a three-line statement with the first line in black, a stacked three-word nav where hovering one word dims the others and underlines it, and a city with a live clock on the right. Lines fade up 8px one after another on load.
Code
React For Figma<header class="masthead">
<span class="masthead__dot" aria-hidden="true"></span>
<h1 class="masthead__statement">
<span class="masthead__line">TERRON is the ceramics practice of Mira Holt</span>
<span class="masthead__line masthead__line--mute">a norwegian potter and object designer</span>
<span class="masthead__line masthead__line--mute">firing for kitchens, hotels and shelves</span>
</h1>
<nav class="masthead__nav" aria-label="Main">
<ul class="masthead__list">
<li class="masthead__item"><a class="masthead__link" href="#work">Work</a></li>
<li class="masthead__item"><a class="masthead__link" href="#glazes">Glazes</a></li>
<li class="masthead__item"><a class="masthead__link" href="#commissions">Commissions</a></li>
</ul>
</nav>
<p class="masthead__place">
<span class="masthead__line">Bergen</span>
<time class="masthead__line masthead__line--mute masthead__clock" data-zone="Europe/Oslo">09:41</time>
</p>
</header>
<style>
.masthead {
display: grid;
grid-template-columns: repeat(8, minmax(0, 1fr));
gap: var(--gutter);
padding: var(--edge);
background: var(--paper);
color: var(--ink);
font-size: var(--text-s);
line-height: var(--leading);
letter-spacing: var(--tracking);
}
.masthead__dot {
grid-column: 1;
width: 6px;
height: 6px;
margin-top: 4px;
border-radius: var(--radius-round);
background: currentColor;
}
.masthead__statement {
grid-column: 2 / span 2;
margin: 0;
font: inherit;
letter-spacing: inherit;
}
.masthead__line {
display: block;
}
.masthead__line--mute {
color: var(--mute);
}
.masthead__nav {
grid-column: 4;
}
.masthead__list {
margin: 0;
padding: 0;
list-style: none;
}
.masthead__link {
position: relative;
color: inherit;
text-decoration: underline 1px transparent;
text-underline-offset: 3px;
transition: opacity var(--time-dim) var(--ease-dim), text-decoration-color var(--time-dim) var(--ease-dim);
}
/* The link is inline so the stack stays tight; its hit area still reaches 44px. */
.masthead__link::after {
content: "";
position: absolute;
inset: -2px -8px;
}
.masthead__list:has(.masthead__link:hover, .masthead__link:focus-visible) .masthead__link {
opacity: 0.32;
}
.masthead__list:has(.masthead__link:hover, .masthead__link:focus-visible) .masthead__link:is(:hover, :focus-visible) {
opacity: 1;
text-decoration-color: currentColor;
}
.masthead__link:focus-visible {
outline: none;
}
.masthead__place {
grid-column: 8;
margin: 0;
text-align: right;
}
.masthead__clock {
font-variant-numeric: tabular-nums;
}
/* Lines fade up 8px into place, one after another. */
.masthead__line,
.masthead__item,
.masthead__dot {
opacity: 0;
transform: translateY(8px);
transition: opacity var(--time-fade) var(--ease-fade), transform var(--time-fade) var(--ease-fade);
transition-delay: calc(var(--order, 0) * var(--stagger-fade));
}
.masthead.is-in .masthead__line,
.masthead.is-in .masthead__item,
.masthead.is-in .masthead__dot {
opacity: 1;
transform: none;
}
@media (max-width: 52rem) {
.masthead {
grid-template-columns: 1fr auto;
row-gap: 18px;
}
.masthead__dot { grid-column: 1; grid-row: 1; }
.masthead__place { grid-column: 2; grid-row: 1; }
.masthead__statement {
grid-column: 1 / -1;
grid-row: 2;
font-size: 14px;
text-align: center;
}
.masthead__nav {
grid-column: 1 / -1;
grid-row: 3;
}
.masthead__list {
display: flex;
justify-content: center;
gap: 4px;
}
.masthead__link {
display: inline-flex;
align-items: center;
min-height: var(--tap);
padding: 0 10px;
}
.masthead__link::after { content: none; }
}
@media (prefers-reduced-motion: reduce) {
.masthead__line,
.masthead__item,
.masthead__dot {
opacity: 1;
transform: none;
transition: none;
}
}
</style>
<script>
(() => {
function tellTime(clock) {
const zone = clock.dataset.zone;
const format = new Intl.DateTimeFormat('en-GB', { hour: '2-digit', minute: '2-digit', hour12: false, timeZone: zone });
const show = () => {
const now = new Date();
clock.textContent = format.format(now);
clock.dateTime = now.toISOString();
};
show();
setInterval(show, 15000);
}
function fadeIn(root) {
root.querySelectorAll('.masthead__dot, .masthead__line, .masthead__item').forEach((line, order) => line.style.setProperty('--order', order));
requestAnimationFrame(() => requestAnimationFrame(() => root.classList.add('is-in')));
}
for (const root of document.querySelectorAll('.masthead')) {
root.querySelectorAll('.masthead__clock').forEach(tellTime);
fadeIn(root);
}
})();
</script>
Screensaver deck
The signature first screen: a deck of drawn ceramic pictures pops in and cascades away, the giant wordmark rises out of a blur, and the last picture bounces around the screen under the wordmark, which inverts it through difference blend. Click it to stamp a copy and fire the next picture; a round difference cursor follows the pointer.
Code
React For Figma<section class="hero" aria-label="TERRON, ceramics by Mira Holt">
<div class="hero__deck" aria-hidden="true"></div>
<div class="hero__stamps" aria-hidden="true"></div>
<button class="hero__card" type="button" aria-label="Show the next piece"><span class="hero__frame"></span></button>
<svg class="hero__mark" role="img" aria-label="TERRON" viewBox="0 25.9 420 75.5" preserveAspectRatio="xMidYMax meet">
<text class="hero__word" x="0" y="100">TERRON</text>
</svg>
<div class="hero__cursor" aria-hidden="true"><span class="hero__cursor-label">Go on, fire another</span></div>
<div class="hero__library" hidden>
<!-- Night jar: a cobalt jar against a lilac to ember sky. The piece that stays and bounces. -->
<svg class="hero__art" viewBox="0 0 300 410" data-name="Night jar">
<defs>
<linearGradient id="hero-jar-sky" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#b04dff"/>
<stop offset="0.5" stop-color="#ff6fae"/>
<stop offset="0.72" stop-color="#ff8a4a"/>
<stop offset="0.8" stop-color="#ff4d12"/>
<stop offset="1" stop-color="#ff3a08"/>
</linearGradient>
<radialGradient id="hero-jar-body" cx="0.36" cy="0.42" r="0.78">
<stop offset="0" stop-color="#8fa0ff"/>
<stop offset="0.38" stop-color="#1d3cff"/>
<stop offset="0.8" stop-color="#0a1797"/>
<stop offset="1" stop-color="#050b55"/>
</radialGradient>
<linearGradient id="hero-jar-rim" x1="0" y1="0" x2="1" y2="0">
<stop offset="0" stop-color="#ff7a3d" stop-opacity="0"/>
<stop offset="0.82" stop-color="#ff7a3d" stop-opacity="0"/>
<stop offset="1" stop-color="#ff7a3d" stop-opacity="0.75"/>
</linearGradient>
<filter id="hero-jar-soft" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="6"/></filter>
<filter id="hero-jar-shine" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="2.4"/></filter>
</defs>
<rect width="300" height="410" fill="url(#hero-jar-sky)"/>
<rect y="296" width="300" height="22" fill="#ffd2a6" opacity="0.4" filter="url(#hero-jar-soft)"/>
<ellipse cx="152" cy="353" rx="78" ry="10" fill="#5c0c00" opacity="0.55" filter="url(#hero-jar-soft)"/>
<path d="M124 108 H176 Q170 112 168 122 Q166 140 172 150 C214 168 232 214 226 256 C220 300 196 330 182 344 L182 350 H118 L118 344 C104 330 80 300 74 256 C68 214 86 168 128 150 Q134 140 132 122 Q130 112 124 108 Z" fill="url(#hero-jar-body)"/>
<path d="M124 108 H176 Q170 112 168 122 Q166 140 172 150 C214 168 232 214 226 256 C220 300 196 330 182 344 L182 350 H118 L118 344 C104 330 80 300 74 256 C68 214 86 168 128 150 Q134 140 132 122 Q130 112 124 108 Z" fill="url(#hero-jar-rim)"/>
<ellipse cx="150" cy="108" rx="26" ry="4.5" fill="#050b55"/>
<path d="M125 107.5 Q150 102 175 107.5" fill="none" stroke="#c9d1ff" stroke-width="1.4" opacity="0.8"/>
<ellipse cx="108" cy="238" rx="8" ry="58" fill="#ffffff" opacity="0.6" filter="url(#hero-jar-shine)"/>
<ellipse cx="130" cy="171" rx="15" ry="5" fill="#ffffff" opacity="0.5" transform="rotate(-24 130 171)" filter="url(#hero-jar-shine)"/>
<rect x="118" y="346" width="64" height="4" fill="#03072f"/>
</svg>
<!-- Kiln mouth: the glowing arch of a fired kiln in a cobalt wall. -->
<svg class="hero__art" viewBox="0 0 300 375" data-name="Kiln mouth">
<defs>
<radialGradient id="hero-kiln-heat" cx="0.5" cy="0.64" r="0.62">
<stop offset="0" stop-color="#fff4c2"/>
<stop offset="0.22" stop-color="#ffb000"/>
<stop offset="0.58" stop-color="#ff4d12"/>
<stop offset="1" stop-color="#4a0a00"/>
</radialGradient>
<radialGradient id="hero-kiln-wall" cx="0.5" cy="0.55" r="0.75">
<stop offset="0.5" stop-color="#1d3cff"/>
<stop offset="1" stop-color="#0b1a9e"/>
</radialGradient>
<filter id="hero-kiln-spill" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="14"/></filter>
</defs>
<rect width="300" height="375" fill="url(#hero-kiln-wall)"/>
<path d="M62 336 V176 A88 88 0 0 1 238 176 V336 Z" fill="#ff4d12" opacity="0.55" filter="url(#hero-kiln-spill)"/>
<path d="M70 330 V178 A80 80 0 0 1 230 178 V330 Z" fill="url(#hero-kiln-heat)"/>
<path d="M70 330 V178 A80 80 0 0 1 230 178 V330" fill="none" stroke="#160f0c" stroke-width="9" opacity="0.9"/>
<g fill="#160f0c" opacity="0.82">
<rect x="80" y="252" width="140" height="5"/>
<rect x="80" y="318" width="140" height="5"/>
<path d="M96 252 C92 236 98 226 104 222 H112 C118 226 124 236 120 252 Z"/>
<path d="M134 252 V232 C134 226 162 226 162 232 V252 Z"/>
<path d="M178 252 C174 240 182 230 192 230 C202 230 208 240 204 252 Z"/>
<path d="M104 318 C100 300 112 290 124 290 C136 290 146 300 142 318 Z"/>
<path d="M168 318 V296 H200 V318 Z"/>
</g>
<rect x="52" y="330" width="196" height="12" fill="#160f0c" opacity="0.9"/>
</svg>
<!-- Test tiles: a board of glaze tests on bare clay. -->
<svg class="hero__art" viewBox="0 0 480 320" data-name="Glaze tests">
<rect width="480" height="320" fill="#f4efe4"/>
<g font-family="Inter, Arial, sans-serif" font-weight="600" font-size="9" fill="#160f0c" letter-spacing="-0.1">
<text x="18" y="30">Glaze tests, cone 10, reduction</text>
<text x="462" y="30" text-anchor="end">Sheet 14</text>
</g>
<g>
<rect x="18" y="52" width="64" height="64" rx="4" fill="#1d3cff"/><rect x="94" y="52" width="64" height="64" rx="4" fill="#9fd8c4"/><rect x="170" y="52" width="64" height="64" rx="4" fill="#ffb000"/><rect x="246" y="52" width="64" height="64" rx="4" fill="#160f0c"/><rect x="322" y="52" width="64" height="64" rx="4" fill="#ff4d12"/><rect x="398" y="52" width="64" height="64" rx="4" fill="#b04dff"/>
<rect x="18" y="128" width="64" height="64" rx="4" fill="#ff6fae"/><rect x="94" y="128" width="64" height="64" rx="4" fill="#b59f7e"/><rect x="170" y="128" width="64" height="64" rx="4" fill="#0a1797"/><rect x="246" y="128" width="64" height="64" rx="4" fill="#ff1f0f"/><rect x="322" y="128" width="64" height="64" rx="4" fill="#d9e9c8"/><rect x="398" y="128" width="64" height="64" rx="4" fill="#ff8b35"/>
<rect x="18" y="204" width="64" height="64" rx="4" fill="#4f9c86"/><rect x="94" y="204" width="64" height="64" rx="4" fill="#ffd36b"/><rect x="170" y="204" width="64" height="64" rx="4" fill="#6b3b2a"/><rect x="246" y="204" width="64" height="64" rx="4" fill="#8fa0ff"/><rect x="322" y="204" width="64" height="64" rx="4" fill="#f4efe4" stroke="#160f0c" stroke-opacity="0.15"/><rect x="398" y="204" width="64" height="64" rx="4" fill="#1238ff"/>
</g>
<g fill="#000000" opacity="0.18">
<rect x="18" y="96" width="64" height="20" rx="4"/><rect x="170" y="96" width="64" height="20" rx="4"/><rect x="322" y="96" width="64" height="20" rx="4"/>
<rect x="94" y="172" width="64" height="20" rx="4"/><rect x="246" y="172" width="64" height="20" rx="4"/><rect x="398" y="172" width="64" height="20" rx="4"/>
<rect x="18" y="248" width="64" height="20" rx="4"/><rect x="170" y="248" width="64" height="20" rx="4"/><rect x="322" y="248" width="64" height="20" rx="4"/>
</g>
<g font-family="Inter, Arial, sans-serif" font-weight="600" font-size="8" fill="#160f0c" opacity="0.7">
<text x="18" y="290">01 to 18, two dips on the lower third</text>
<text x="462" y="290" text-anchor="end">MH</text>
</g>
</svg>
<!-- Celadon bowl: a bowl seen from above on a red ground. -->
<svg class="hero__art" viewBox="0 0 380 380" data-name="Celadon bowl">
<defs>
<radialGradient id="hero-bowl-glaze" cx="0.46" cy="0.44" r="0.6">
<stop offset="0" stop-color="#e8f7f0"/>
<stop offset="0.45" stop-color="#9fd8c4"/>
<stop offset="0.9" stop-color="#4f9c86"/>
<stop offset="1" stop-color="#2d6b5a"/>
</radialGradient>
<radialGradient id="hero-bowl-well" cx="0.5" cy="0.5" r="0.5">
<stop offset="0" stop-color="#5fb39b"/>
<stop offset="1" stop-color="#9fd8c4"/>
</radialGradient>
<filter id="hero-bowl-shadow" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="12"/></filter>
</defs>
<rect width="380" height="380" fill="#ff1f0f"/>
<circle cx="204" cy="208" r="132" fill="#7a0600" opacity="0.6" filter="url(#hero-bowl-shadow)"/>
<circle cx="190" cy="190" r="132" fill="url(#hero-bowl-glaze)"/>
<circle cx="190" cy="190" r="112" fill="none" stroke="#ffffff" stroke-opacity="0.35" stroke-width="2"/>
<circle cx="190" cy="190" r="50" fill="url(#hero-bowl-well)"/>
<path d="M96 112 A124 124 0 0 1 182 66" fill="none" stroke="#ffffff" stroke-width="5" stroke-linecap="round" opacity="0.7"/>
<circle cx="176" cy="176" r="9" fill="#ffffff" opacity="0.55"/>
</svg>
<!-- Speckled cup: a stoneware cup with a cobalt dip on ash yellow. -->
<svg class="hero__art" viewBox="0 0 305 324" data-name="Speckled cup">
<defs>
<filter id="hero-cup-grain" x="0" y="0" width="100%" height="100%">
<feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="1" seed="7"/>
<feColorMatrix values="0 0 0 0 0.09 0 0 0 0 0.06 0 0 0 0 0.05 0 0 0 -9 4.6"/>
</filter>
<linearGradient id="hero-cup-body" x1="0" y1="0" x2="1" y2="0">
<stop offset="0" stop-color="#cfc6b4"/>
<stop offset="0.35" stop-color="#f4efe4"/>
<stop offset="1" stop-color="#a99d86"/>
</linearGradient>
<filter id="hero-cup-shadow" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="7"/></filter>
</defs>
<rect width="305" height="324" fill="#ffb000"/>
<ellipse cx="160" cy="262" rx="88" ry="10" fill="#7a4a00" opacity="0.5" filter="url(#hero-cup-shadow)"/>
<path d="M206 140 C252 136 254 214 204 210" fill="none" stroke="#e6dfd0" stroke-width="15" stroke-linecap="round"/>
<path d="M92 112 H212 V236 C212 252 200 260 186 260 H118 C104 260 92 252 92 236 Z" fill="url(#hero-cup-body)"/>
<path d="M92 112 H212 V150 C204 150 202 168 196 168 C190 168 190 152 180 152 C168 152 170 176 160 176 C150 176 152 150 140 150 C128 150 130 164 120 164 C110 164 108 150 92 150 Z" fill="#1d3cff"/>
<ellipse cx="152" cy="112" rx="60" ry="9" fill="#0a1797"/>
<rect x="92" y="104" width="120" height="160" fill="#000000" filter="url(#hero-cup-grain)" opacity="0.5"/>
<rect x="104" y="160" width="6" height="84" rx="3" fill="#ffffff" opacity="0.45"/>
</svg>
</div>
</section>
<style>
.hero {
position: relative;
isolation: isolate;
height: var(--stage-height);
overflow: hidden;
background: var(--paper);
--card-w: clamp(8.5rem, 20.5vw, 18.5rem);
}
@media (hover: hover) and (pointer: fine) {
.hero,
.hero__card { cursor: none; }
}
/* Intro cards stack in the centre, pop in one by one and leave in a cascade. */
.hero__deck,
.hero__stamps {
position: absolute;
inset: 0;
pointer-events: none;
}
.hero__block,
.hero__stamp {
position: absolute;
top: 50%;
left: 50%;
width: calc(var(--card-w) * var(--size, 1));
translate: -50% -50%;
}
.hero__block {
opacity: 0;
animation:
hero-pop var(--time-pop) var(--ease-pop) var(--in) both,
hero-drop var(--time-drop) ease-out var(--out) forwards;
}
.hero__stamp {
opacity: 0.9;
}
.hero__stamp.is-leaving {
animation: hero-drop var(--time-drop) ease-out forwards;
}
.hero__art {
width: 100%;
height: auto;
}
/* The piece that stays: pops in last, then drifts and bounces off the edges. */
.hero__card {
position: absolute;
top: 50%;
left: 50%;
z-index: 1;
width: var(--card-w);
margin: 0;
padding: 0;
border: 0;
background: none;
translate: -50% -50%;
will-change: transform;
}
.hero__frame {
display: block;
opacity: 0;
}
.hero.is-started .hero__frame {
animation: hero-pop var(--time-pop) var(--ease-pop) var(--final) both;
}
.hero.is-started .hero__frame.is-popping {
animation: hero-pop var(--time-pop) var(--ease-pop) both;
}
.hero__card:focus-visible {
outline: 2px solid var(--ink);
outline-offset: 4px;
}
/* The wordmark sits on top in difference: black on white, the inverse of any picture under it. */
.hero__mark {
position: absolute;
right: 1%;
bottom: var(--edge);
left: 1%;
z-index: 2;
width: 98%;
height: auto;
overflow: visible;
mix-blend-mode: difference;
pointer-events: none;
opacity: 0;
transform: translateY(45%);
filter: blur(16px);
}
.hero__word {
fill: var(--paper);
font-family: var(--font-text);
font-size: 100px;
font-weight: var(--weight-mark);
font-variation-settings: var(--optical);
letter-spacing: var(--tracking-mark);
}
.hero.is-started .hero__mark {
opacity: 1;
transform: none;
filter: blur(0);
transition:
opacity var(--time-media) var(--ease-fade) var(--rise),
transform var(--time-media) var(--ease-fade) var(--rise),
filter var(--time-media) var(--ease-fade) var(--rise);
}
/* The round cursor, in difference too, with a note when it is over the piece. */
.hero__cursor {
position: absolute;
top: 0;
left: 0;
z-index: 3;
width: var(--cursor);
height: var(--cursor);
margin: calc(var(--cursor) / -2) 0 0 calc(var(--cursor) / -2);
border-radius: var(--radius-round);
background: var(--paper);
mix-blend-mode: difference;
pointer-events: none;
opacity: 0;
scale: 0.4;
transition: opacity var(--time-dim) var(--ease-dim), scale var(--time-dim) var(--ease-dim);
}
.hero.is-pointing .hero__cursor {
opacity: 1;
scale: 1;
}
.hero__cursor-label {
position: absolute;
top: calc(100% + 8px);
left: 50%;
color: var(--paper);
font-size: var(--text-s);
white-space: nowrap;
opacity: 0;
transform: translate(-50%, 8px);
transition: opacity var(--time-fade) var(--ease-fade), transform var(--time-fade) var(--ease-fade);
}
.hero.is-over-card .hero__cursor-label {
opacity: 1;
transform: translate(-50%, 0);
}
@keyframes hero-pop {
from { opacity: 0; transform: scale(0.8); }
to { opacity: 1; transform: scale(1); }
}
@keyframes hero-drop {
to { opacity: 0; transform: scale(0.96); }
}
@media (max-width: 52rem) {
.hero { --card-w: clamp(8.5rem, 40vw, 18.5rem); }
}
@media (hover: none), (pointer: coarse) {
.hero__cursor { display: none; }
}
@media (prefers-reduced-motion: reduce) {
.hero__block { display: none; }
.hero .hero__frame,
.hero.is-started .hero__frame { opacity: 1; animation: none; }
.hero .hero__mark,
.hero.is-started .hero__mark { opacity: 1; transform: none; filter: none; transition: none; }
}
</style>
<script>
(() => {
const STILL = matchMedia('(prefers-reduced-motion: reduce)');
const START = 100;
const DECK = [{ art: 2, size: 1.63 }, { art: 3, size: 1.29 }, { art: 1, size: 1.28 }];
const FINAL_ART = 0;
const MOST_STAMPS = 5;
const CURSOR_PULL = 18;
const CAP_HEIGHT = 72.7;
const OVERSHOOT = 1.4;
let serial = 0;
const seconds = (root, name) => parseFloat(getComputedStyle(root).getPropertyValue(name)) * 1000;
function cloneArt(library, index) {
const copy = library[index].cloneNode(true);
const tag = `-${++serial}`;
const renamed = [...copy.querySelectorAll('[id]')].map((node) => {
const old = node.id;
node.id = old + tag;
return old;
});
for (const node of copy.querySelectorAll('[fill], [stroke], [filter]')) {
for (const name of ['fill', 'stroke', 'filter']) {
const value = node.getAttribute(name);
const match = value && value.match(/^url\(#(.+)\)$/);
if (match && renamed.includes(match[1])) node.setAttribute(name, `url(#${match[1]}${tag})`);
}
}
copy.removeAttribute('hidden');
return copy;
}
function fitWordmark(mark) {
const word = mark.querySelector('.hero__word');
const box = word.getBBox();
const top = 100 - CAP_HEIGHT - OVERSHOOT;
mark.setAttribute('viewBox', `${box.x} ${top} ${box.width} ${CAP_HEIGHT + 2 * OVERSHOOT}`);
}
function setUp(root) {
const library = [...root.querySelectorAll('.hero__library .hero__art')];
const deck = root.querySelector('.hero__deck');
const stamps = root.querySelector('.hero__stamps');
const card = root.querySelector('.hero__card');
const frame = root.querySelector('.hero__frame');
const mark = root.querySelector('.hero__mark');
const cursor = root.querySelector('.hero__cursor');
const motion = { x: 0, y: 0, vx: 1, vy: 1 };
const pointer = { x: 0, y: 0, shownX: 0, shownY: 0, inside: false };
let current = FINAL_ART;
let running = false;
let visible = false;
let frameId = 0;
let last = 0;
function showArt(index) {
frame.replaceChildren(cloneArt(library, index));
card.setAttribute('aria-label', `${library[index].dataset.name}. Show the next piece`);
}
function buildDeck() {
const pop = seconds(root, '--stagger-pop');
const drop = seconds(root, '--stagger-drop');
const settle = START + DECK.length * pop + seconds(root, '--time-pop');
DECK.forEach(({ art, size }, order) => {
const block = document.createElement('div');
block.className = 'hero__block';
block.style.setProperty('--size', size);
block.style.setProperty('--in', `${START + order * pop}ms`);
block.style.setProperty('--out', `${settle + order * drop}ms`);
block.append(cloneArt(library, art));
deck.append(block);
});
root.style.setProperty('--final', `${START + DECK.length * pop}ms`);
root.style.setProperty('--rise', `${START + DECK.length * pop}ms`);
return settle + DECK.length * drop + seconds(root, '--time-drop');
}
function bounds() {
return {
x: Math.max(0, (root.clientWidth - card.offsetWidth) / 2),
y: Math.max(0, (root.clientHeight - card.offsetHeight) / 2),
};
}
function place() {
card.style.transform = `translate(${motion.x}px, ${motion.y}px)`;
}
function restOverWordmark() {
const limit = bounds();
const markTop = mark.getBoundingClientRect().top - root.getBoundingClientRect().top;
motion.x = limit.x * 0.5;
motion.y = Math.min(limit.y, markTop + mark.clientHeight * 0.45 - root.clientHeight / 2 - card.offsetHeight / 2);
place();
}
function drift(dt) {
const speed = parseFloat(getComputedStyle(root).getPropertyValue('--drift')) || 96;
const limit = bounds();
motion.x += motion.vx * speed * dt;
motion.y += motion.vy * speed * dt;
if (motion.x > limit.x) { motion.x = limit.x; motion.vx = -1; }
if (motion.x < -limit.x) { motion.x = -limit.x; motion.vx = 1; }
if (motion.y > limit.y) { motion.y = limit.y; motion.vy = -1; }
if (motion.y < -limit.y) { motion.y = -limit.y; motion.vy = 1; }
place();
}
function follow(dt) {
const pull = 1 - Math.exp(-dt * CURSOR_PULL);
pointer.shownX += (pointer.x - pointer.shownX) * pull;
pointer.shownY += (pointer.y - pointer.shownY) * pull;
cursor.style.transform = `translate(${pointer.shownX}px, ${pointer.shownY}px)`;
}
function tick(now) {
const dt = Math.min(0.05, (now - last) / 1000 || 0);
last = now;
if (running && !STILL.matches) drift(dt);
if (pointer.inside) follow(dt);
frameId = requestAnimationFrame(tick);
}
function play() {
if (frameId || !visible) return;
last = performance.now();
frameId = requestAnimationFrame(tick);
}
function pause() {
cancelAnimationFrame(frameId);
frameId = 0;
}
function stamp() {
const copy = document.createElement('div');
copy.className = 'hero__stamp';
copy.style.width = `${card.offsetWidth}px`;
copy.style.transform = card.style.transform;
copy.append(cloneArt(library, current));
stamps.append(copy);
const kept = stamps.querySelectorAll('.hero__stamp:not(.is-leaving)');
if (kept.length > MOST_STAMPS) {
kept[0].classList.add('is-leaving');
kept[0].addEventListener('animationend', () => kept[0].remove(), { once: true });
}
}
function fire() {
if (!running && !STILL.matches) return;
stamp();
current = (current + 1) % library.length;
showArt(current);
frame.classList.remove('is-popping');
void frame.offsetWidth;
frame.classList.add('is-popping');
}
function trackPointer(event) {
const box = root.getBoundingClientRect();
pointer.x = event.clientX - box.left;
pointer.y = event.clientY - box.top;
if (!pointer.inside) {
pointer.shownX = pointer.x;
pointer.shownY = pointer.y;
}
pointer.inside = true;
root.classList.add('is-pointing');
root.classList.toggle('is-over-card', card.contains(event.target));
}
function leave() {
pointer.inside = false;
root.classList.remove('is-pointing', 'is-over-card');
}
showArt(current);
root.addEventListener('pointermove', trackPointer);
root.addEventListener('pointerleave', leave);
card.addEventListener('click', fire);
new IntersectionObserver(([entry]) => {
visible = entry.isIntersecting;
if (visible) play();
else pause();
}).observe(root);
document.fonts.ready.then(() => {
fitWordmark(mark);
if (STILL.matches) {
restOverWordmark();
return;
}
const runAt = buildDeck();
root.classList.add('is-started');
setTimeout(() => {
deck.replaceChildren();
running = true;
}, runAt);
});
}
document.querySelectorAll('.hero').forEach(setUp);
})();
</script>
Black statement
A black room with the years on the left and a 24px statement on the right, then an outlined button that fills with sweeping light, widens and swaps its arrow on hover, and opens a small note card with two fields.
Code
React For Figma<section class="statement" aria-labelledby="statement-title">
<p class="statement__years statement__fade">2014 — 26</p>
<div class="statement__body">
<h2 class="statement__text statement__fade" id="statement-title">A studio throwing tableware, vessels and tiles for kitchens, hotels and quiet rooms. Fired by hand, glazed in small batches, and made piece by piece with chefs, architects and the odd collector who asks nicely.</h2>
<div class="statement__note-wrap statement__fade">
<button class="statement__button" type="button" aria-expanded="false" aria-controls="statement-note">
<span class="statement__button-label">Leave a note</span>
<span class="statement__arrows" aria-hidden="true">
<svg class="statement__arrow statement__arrow--out" viewBox="0 0 12 12"><path d="M1.5 6h8.5M6.5 2.5 10 6l-3.5 3.5" fill="none" stroke="currentColor" stroke-width="1.4"/></svg>
<svg class="statement__arrow statement__arrow--in" viewBox="0 0 12 12"><path d="M1.5 6h8.5M6.5 2.5 10 6l-3.5 3.5" fill="none" stroke="currentColor" stroke-width="1.4"/></svg>
</span>
</button>
<form class="statement__note" id="statement-note" aria-label="Leave a note">
<div class="statement__note-head">
<p class="statement__note-title">A note to Mira</p>
<button class="statement__close" type="button" aria-label="Close the note">
<svg viewBox="0 0 12 12" aria-hidden="true"><path d="M2.5 2.5l7 7M9.5 2.5l-7 7" stroke="currentColor" stroke-width="1.4"/></svg>
</button>
</div>
<label class="statement__field">
<span class="statement__field-label">What are you making?</span>
<textarea class="statement__input statement__input--area" rows="3" placeholder="Forty bowls for a new dining room"></textarea>
</label>
<label class="statement__field">
<span class="statement__field-label">Where can she write back?</span>
<input class="statement__input" type="email" placeholder="you@studio.no">
</label>
<div class="statement__note-foot">
<p class="statement__sent" role="status"></p>
<button class="statement__button statement__button--send" type="submit">
<span class="statement__button-label">Send</span>
<span class="statement__arrows" aria-hidden="true">
<svg class="statement__arrow statement__arrow--out" viewBox="0 0 12 12"><path d="M1.5 6h8.5M6.5 2.5 10 6l-3.5 3.5" fill="none" stroke="currentColor" stroke-width="1.4"/></svg>
<svg class="statement__arrow statement__arrow--in" viewBox="0 0 12 12"><path d="M1.5 6h8.5M6.5 2.5 10 6l-3.5 3.5" fill="none" stroke="currentColor" stroke-width="1.4"/></svg>
</span>
</button>
</div>
</form>
</div>
</div>
</section>
<style>
.statement {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--gap-half);
padding: 32px var(--edge) 48px;
border-bottom: 1px solid var(--hairline);
background: var(--ink);
color: var(--paper);
}
.statement__years {
margin: 0;
font-size: var(--text-s);
}
.statement__text {
max-width: 38rem;
margin: 0;
font-size: var(--text-m);
font-weight: var(--weight);
line-height: var(--leading);
letter-spacing: var(--tracking);
}
.statement__note-wrap {
position: relative;
margin-top: 24px;
}
/* The button: black with a faint outline; on hover white light sweeps in from the left, it fills and widens 6px, and the arrow is replaced. */
.statement__button {
position: relative;
display: inline-flex;
align-items: center;
gap: 8px;
min-height: var(--tap);
padding: 0 12px;
overflow: hidden;
border: 1px solid var(--hairline);
border-radius: var(--radius-s);
background: var(--ink);
color: var(--paper);
font: inherit;
letter-spacing: inherit;
cursor: pointer;
transition:
background-color var(--time-fill) var(--ease-fill),
color var(--time-fill) var(--ease-fill),
padding var(--time-fill) var(--ease-fill),
scale var(--time-dim) var(--ease-dim);
}
.statement__button::before {
content: "";
position: absolute;
inset: 0 auto 0 0;
width: 200%;
background: linear-gradient(90deg, var(--glow) 0%, var(--glow) 35%, transparent 60%);
opacity: 0;
transform: translateX(-60%);
transition: transform var(--time-fill) var(--ease-fill), opacity var(--time-fill) var(--ease-fill);
}
.statement__button-label,
.statement__arrows {
position: relative;
}
.statement__arrows {
width: 12px;
height: 12px;
overflow: hidden;
}
.statement__arrow {
position: absolute;
inset: 0;
width: 12px;
height: 12px;
transition: transform var(--time-fill) var(--ease-fill), opacity var(--time-fill) var(--ease-fill);
}
.statement__arrow--in {
opacity: 0;
transform: translateX(-100%);
}
.statement__button:hover,
.statement__button:focus-visible,
.statement__button[aria-expanded="true"] {
padding: 0 15px;
background: var(--paper);
color: var(--ink);
}
.statement__button:hover::before,
.statement__button:focus-visible::before {
opacity: 1;
transform: translateX(0);
}
.statement__button:hover .statement__arrow--out,
.statement__button:focus-visible .statement__arrow--out {
opacity: 0;
transform: translateX(100%);
}
.statement__button:hover .statement__arrow--in,
.statement__button:focus-visible .statement__arrow--in {
opacity: 1;
transform: translateX(0);
}
.statement__button[aria-expanded="true"] .statement__arrow {
rotate: 90deg;
}
.statement__button:active {
scale: 0.98;
}
.statement__button:focus-visible {
outline: 1px solid var(--paper);
outline-offset: 3px;
}
/* The note card opens under the button, fading up 8px. */
.statement__note {
position: absolute;
top: calc(100% + 8px);
left: 0;
z-index: 2;
display: grid;
gap: 14px;
width: min(22rem, calc(100vw - 2 * var(--edge)));
padding: 16px;
border: 1px solid var(--hairline);
border-radius: var(--radius-m);
background: var(--ink);
opacity: 0;
visibility: hidden;
transform: translateY(8px);
transition:
opacity var(--time-fade) var(--ease-fade),
transform var(--time-fade) var(--ease-fade),
visibility 0s linear var(--time-fade);
}
.statement.is-open .statement__note {
opacity: 1;
visibility: visible;
transform: none;
transition: opacity var(--time-fade) var(--ease-fade), transform var(--time-fade) var(--ease-fade), visibility 0s;
}
.statement__note-head,
.statement__note-foot {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.statement__note-title,
.statement__sent {
margin: 0;
}
.statement__sent {
color: var(--mute);
}
.statement__close {
display: grid;
place-items: center;
width: var(--tap);
height: var(--tap);
margin: -14px -14px -14px 0;
border: 0;
background: none;
color: var(--mute);
cursor: pointer;
transition: color var(--time-dim) var(--ease-dim);
}
.statement__close svg {
width: 12px;
height: 12px;
}
.statement__close:hover,
.statement__close:focus-visible {
color: var(--paper);
}
.statement__close:focus-visible {
outline: 1px solid var(--paper);
outline-offset: -8px;
}
.statement__field {
display: grid;
gap: 6px;
color: var(--mute);
}
.statement__input {
width: 100%;
min-height: var(--tap);
padding: 12px;
border: 1px solid var(--hairline);
border-radius: var(--radius-s);
background: transparent;
color: var(--paper);
font: inherit;
letter-spacing: inherit;
resize: none;
transition: border-color var(--time-dim) var(--ease-dim);
}
.statement__input::placeholder {
color: var(--dim);
}
.statement__input:hover {
border-color: var(--mute);
}
.statement__input:focus {
border-color: var(--paper);
outline: none;
}
/* Text fades up 8px when the section comes into view. */
.statement__fade {
opacity: 0;
transform: translateY(8px);
transition: opacity var(--time-fade) var(--ease-fade), transform var(--time-fade) var(--ease-fade);
transition-delay: calc(var(--order, 0) * var(--stagger-fade));
}
.statement.is-seen .statement__fade {
opacity: 1;
transform: none;
}
@media (max-width: 52rem) {
.statement {
grid-template-columns: 1fr;
gap: 24px;
}
.statement__text {
font-size: var(--text-m-phone);
}
}
@media (prefers-reduced-motion: reduce) {
.statement__fade {
opacity: 1;
transform: none;
transition: none;
}
}
</style>
<script>
(() => {
const SENT = 'Sent. Mira writes back within a week.';
function setUp(root) {
const opener = root.querySelector('.statement__note-wrap > .statement__button');
const note = root.querySelector('.statement__note');
const sent = root.querySelector('.statement__sent');
function toggle(open) {
root.classList.toggle('is-open', open);
opener.setAttribute('aria-expanded', String(open));
if (open) note.querySelector('.statement__input').focus({ preventScroll: true });
}
opener.addEventListener('click', () => toggle(!root.classList.contains('is-open')));
root.querySelector('.statement__close').addEventListener('click', () => {
toggle(false);
opener.focus();
});
root.addEventListener('keydown', (event) => {
if (event.key !== 'Escape' || !root.classList.contains('is-open')) return;
toggle(false);
opener.focus();
});
document.addEventListener('pointerdown', (event) => {
if (root.classList.contains('is-open') && !note.contains(event.target) && !opener.contains(event.target)) toggle(false);
});
note.addEventListener('submit', (event) => {
event.preventDefault();
sent.textContent = SENT;
note.reset();
});
root.querySelectorAll('.statement__fade').forEach((item, order) => item.style.setProperty('--order', order));
new IntersectionObserver((entries, observer) => {
if (!entries[0].isIntersecting) return;
root.classList.add('is-seen');
observer.disconnect();
}, { threshold: 0.15 }).observe(root);
}
document.querySelectorAll('.statement').forEach(setUp);
})();
</script>
Ruled lists
Ruled rows of small grey lists in two columns from the middle of the page: disciplines, rooms and kitchens, and a row of collaborator links that dim their neighbours on hover. Each row fades up as it enters.
Code
React For Figma<section class="ledger" aria-label="Practice in short">
<div class="ledger__row">
<h2 class="ledger__label ledger__fade">Disciplines</h2>
<div class="ledger__lists">
<ul class="ledger__list ledger__fade">
<li class="ledger__item">Wheel Throwing</li>
<li class="ledger__item">Slip Casting</li>
<li class="ledger__item">Glaze Development</li>
<li class="ledger__item">Tableware Systems</li>
<li class="ledger__item">Architectural Tile</li>
</ul>
<ul class="ledger__list ledger__fade">
<li class="ledger__item">Wood Firing</li>
<li class="ledger__item">Object Direction</li>
<li class="ledger__item">Material Research</li>
<li class="ledger__item">Small Editions</li>
</ul>
</div>
</div>
<div class="ledger__row">
<h2 class="ledger__label ledger__fade">Kitchens and Rooms</h2>
<div class="ledger__lists">
<ul class="ledger__list ledger__fade">
<li class="ledger__item">Ostra Hotel</li>
<li class="ledger__item">Fjell Tea House</li>
<li class="ledger__item">Lumen Bakery</li>
<li class="ledger__item">Brygge 9</li>
<li class="ledger__item">Salt and Ash</li>
<li class="ledger__item">Hval Restaurant</li>
<li class="ledger__item">Nordlys Spa</li>
</ul>
<ul class="ledger__list ledger__fade">
<li class="ledger__item">Kontor Coffee</li>
<li class="ledger__item">Vinter Wine Bar</li>
<li class="ledger__item">Moss Library</li>
<li class="ledger__item">Tidal Baths</li>
<li class="ledger__item">Kaia Market</li>
<li class="ledger__item">Rune Bistro</li>
</ul>
</div>
</div>
<div class="ledger__row">
<h2 class="ledger__label ledger__fade">Worked Alongside</h2>
<div class="ledger__lists">
<ul class="ledger__list ledger__list--links ledger__fade">
<li class="ledger__item"><a class="ledger__link" href="#studio-havn">Studio Havn</a></li>
<li class="ledger__item"><a class="ledger__link" href="#fold-architects">Fold Architects</a></li>
<li class="ledger__item"><a class="ledger__link" href="#oak-and-iron">Oak and Iron</a></li>
<li class="ledger__item"><a class="ledger__link" href="#common-ground">Common.Ground</a></li>
<li class="ledger__item"><a class="ledger__link" href="#verk">Verk</a></li>
</ul>
<ul class="ledger__list ledger__list--links ledger__fade">
<li class="ledger__item"><a class="ledger__link" href="#lyse">Lyse</a></li>
<li class="ledger__item"><a class="ledger__link" href="#ny">nY</a></li>
<li class="ledger__item"><a class="ledger__link" href="#mork">Mørk</a></li>
<li class="ledger__item"><a class="ledger__link" href="#halden">Halden</a></li>
</ul>
</div>
</div>
</section>
<style>
.ledger {
background: var(--ink);
color: var(--paper);
}
.ledger__row {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--gap-half);
min-height: var(--row-min);
padding: var(--row-pad) var(--edge) 40px;
border-bottom: 1px solid var(--hairline);
}
.ledger__label {
margin: 0;
font: inherit;
letter-spacing: inherit;
}
.ledger__lists {
display: grid;
grid-template-columns: repeat(2, minmax(0, var(--list-col)));
gap: 0 var(--gutter);
align-content: start;
}
.ledger__list {
margin: 0;
padding: 0;
list-style: none;
color: var(--mute);
}
.ledger__item {
line-height: var(--leading);
}
/* Links: the hovered one turns white and gets a rule, the rest of its row steps back. */
.ledger__link {
position: relative;
color: var(--mute);
text-decoration: underline 1px transparent;
text-underline-offset: 3px;
transition: color var(--time-dim) var(--ease-dim), text-decoration-color var(--time-dim) var(--ease-dim);
}
.ledger__link::after {
content: "";
position: absolute;
inset: -2px -8px;
}
.ledger__lists:has(.ledger__link:hover, .ledger__link:focus-visible) .ledger__link {
color: var(--dim);
}
.ledger__lists:has(.ledger__link:hover, .ledger__link:focus-visible) .ledger__link:is(:hover, :focus-visible) {
color: var(--paper);
text-decoration-color: currentColor;
}
.ledger__link:focus-visible {
outline: none;
}
/* Each row fades up 8px as it enters the screen. */
.ledger__fade {
opacity: 0;
transform: translateY(8px);
transition: opacity var(--time-fade) var(--ease-fade), transform var(--time-fade) var(--ease-fade);
transition-delay: calc(var(--order, 0) * var(--stagger-fade));
}
.ledger__row.is-seen .ledger__fade {
opacity: 1;
transform: none;
}
@media (max-width: 52rem) {
.ledger__link {
display: inline-flex;
align-items: center;
min-height: var(--tap);
min-width: var(--tap);
}
.ledger__link::after {
content: none;
}
.ledger__row {
grid-template-columns: 1fr;
gap: 24px;
padding-bottom: 48px;
}
.ledger__label {
font-size: 14px;
}
.ledger__lists {
grid-template-columns: repeat(2, minmax(0, 1fr));
font-size: 14px;
}
}
@media (prefers-reduced-motion: reduce) {
.ledger__fade {
opacity: 1;
transform: none;
transition: none;
}
}
</style>
<script>
(() => {
const seen = new IntersectionObserver((entries) => {
for (const entry of entries) {
if (!entry.isIntersecting) continue;
entry.target.classList.add('is-seen');
seen.unobserve(entry.target);
}
}, { threshold: 0.15 });
for (const root of document.querySelectorAll('.ledger')) {
for (const row of root.querySelectorAll('.ledger__row')) {
row.querySelectorAll('.ledger__fade').forEach((item, order) => item.style.setProperty('--order', order));
seen.observe(row);
}
}
})();
</script>
Work grid with pill
Two columns of 3:2 project pictures, with a white floating pill nav held at the top. Two are museum photographs of a teapot and a bowl printed in one ink onto the colour (grayscale, multiply); the teapot hard-cuts through four colourways every half second; on hover each picture pulls in its edges and fades in its moving layer (steam, a passing light, a ripple).
Code
React For Figma<section class="work" id="work" aria-label="Selected work">
<div class="work__bar">
<nav class="work__pill" aria-label="Sections">
<a class="work__pill-link" href="#work" aria-current="true">Work</a>
<a class="work__pill-link" href="#glazes">Glazes</a>
<a class="work__pill-link" href="#commissions">Commissions</a>
</nav>
</div>
<div class="work__grid">
<article class="work__card">
<a class="work__media-link" href="#ostra" aria-label="Ostra Hotel, tableware system">
<div class="work__media work__media--cut">
<img class="work__photo" src="assets/flattened-teapot.jpg" alt="" width="1000" height="667">
</div>
</a>
<p class="work__caption"><span class="work__title">Ostra Hotel</span><span class="work__kind">Tableware System, Identity</span></p>
</article>
<article class="work__card">
<a class="work__media-link" href="#fjell" aria-label="Fjell Tea House, cups and packaging">
<div class="work__media work__media--red">
<div class="work__logo" aria-hidden="true">Fjell<span class="work__logo-sub">Tea House, since 1931</span></div>
<svg class="work__motion work__steam" viewBox="0 0 600 400" aria-hidden="true">
<path pathLength="1" d="M262 136 C250 116 274 100 262 80 C252 62 270 50 264 34"/>
<path pathLength="1" d="M300 130 C288 110 312 94 300 74 C290 56 308 44 302 28"/>
<path pathLength="1" d="M338 136 C326 116 350 100 338 80 C328 62 346 50 340 34"/>
</svg>
</div>
</a>
<p class="work__caption"><span class="work__title">Fjell Tea House</span><span class="work__kind">Cups, Packaging, Identity</span></p>
</article>
<article class="work__card">
<a class="work__media-link" href="#lumen" aria-label="Lumen Bakery, bowls">
<div class="work__media work__media--blue">
<img class="work__photo work__photo--glaze" src="assets/tea-bowl.jpg" alt="" width="1000" height="667">
<div class="work__motion work__sheen" aria-hidden="true"></div>
</div>
</a>
<p class="work__caption"><span class="work__title">Lumen Bakery</span><span class="work__kind">Bowls, Art Direction</span></p>
</article>
<article class="work__card">
<a class="work__media-link" href="#tidal" aria-label="Tidal Baths, architectural tile">
<div class="work__media work__media--tile">
<div class="work__tiles" aria-hidden="true"></div>
<div class="work__tile-mark" aria-hidden="true">Tidal<br>Baths</div>
<div class="work__motion work__ripple" aria-hidden="true"></div>
</div>
</a>
<p class="work__caption"><span class="work__title">Tidal Baths</span><span class="work__kind">Architectural Tile</span></p>
</article>
</div>
</section>
<style>
.work {
padding: 0 var(--edge) 64px;
background: var(--ink);
color: var(--paper);
}
/* The floating white pill, held at the top while the grid scrolls under it. */
.work__bar {
position: sticky;
top: 0;
z-index: 3;
display: flex;
justify-content: center;
height: 0;
}
.work__pill {
display: flex;
gap: 8px;
height: max-content;
padding: 5px;
border-radius: var(--radius-m);
background: var(--paper);
transform: translateY(21px);
}
.work__pill-link {
position: relative;
display: inline-flex;
align-items: center;
min-height: var(--tap);
padding: 0 12px;
overflow: hidden;
border-radius: var(--radius-s);
color: var(--ink);
text-decoration: none;
isolation: isolate;
transition: background-color var(--time-fill) var(--ease-fill), color var(--time-fill) var(--ease-fill);
}
.work__pill-link::before {
content: "";
position: absolute;
z-index: -1;
inset: 0 auto 0 0;
width: 200%;
background: linear-gradient(90deg, var(--glow-dark) 0%, var(--glow-dark) 35%, transparent 60%);
opacity: 0;
transform: translateX(-60%);
transition: transform var(--time-fill) var(--ease-fill), opacity var(--time-fill) var(--ease-fill);
}
.work__pill-link:hover,
.work__pill-link:focus-visible {
background: var(--ink);
color: var(--paper);
}
.work__pill-link:hover::before,
.work__pill-link:focus-visible::before {
opacity: 1;
transform: translateX(0);
}
.work__pill-link:focus-visible {
outline: 1px solid var(--ink);
outline-offset: 2px;
}
.work__pill-link[aria-current="true"]::after {
content: "";
position: absolute;
bottom: 9px;
left: 50%;
width: 3px;
height: 3px;
margin-left: -1.5px;
border-radius: var(--radius-round);
background: currentColor;
}
.work__grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 48px var(--gap-half);
padding-top: 88px;
}
.work__card {
margin: 0;
}
.work__media-link {
display: block;
color: inherit;
text-decoration: none;
}
.work__media-link:focus-visible {
outline: 1px solid var(--paper);
outline-offset: 4px;
}
/* The picture: on hover its edges pull in 0.7% and its moving layer fades in. */
.work__media {
position: relative;
aspect-ratio: 3 / 2;
overflow: hidden;
clip-path: inset(0);
transition: clip-path var(--time-media) var(--ease-media);
}
.work__card:hover .work__media,
.work__media-link:focus-visible .work__media {
clip-path: inset(0.7%);
}
.work__art {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
}
.work__motion {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
opacity: 0;
transition: opacity var(--time-media) var(--ease-media);
animation-play-state: paused;
}
.work__card:hover .work__motion,
.work__media-link:focus-visible .work__motion {
opacity: 1;
}
.work__card.is-live:hover .work__motion,
.work__card.is-live:hover .work__motion *,
.work__card.is-live .work__media-link:focus-visible .work__motion,
.work__card.is-live .work__media-link:focus-visible .work__motion * {
animation-play-state: running;
}
/* Card one: a tonal still life that hard-cuts through four colourways, half a second each. */
.work__media--cut {
background: var(--art-tangerine);
color: color-mix(in srgb, var(--art-tangerine) 86%, black);
animation: work-cut calc(var(--cut) * 4) step-end infinite;
animation-play-state: paused;
}
.work__card.is-live .work__media--cut {
animation-play-state: running;
}
/* A museum photograph printed onto the ground: grey studio paper turns into the colourway. */
.work__photo {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
object-position: 50% 62%;
filter: grayscale(1) contrast(1.25) brightness(1.18);
mix-blend-mode: multiply;
transition: scale 1.2s var(--ease-media);
}
.work__card:hover .work__photo { scale: 1.04; }
.work__photo--glaze {
object-position: 50% 50%;
filter: grayscale(1) contrast(1.3) brightness(1.2);
}
@keyframes work-cut {
0% { background: var(--art-tangerine); color: color-mix(in srgb, var(--art-tangerine) 86%, black); }
25% { background: var(--art-blue); color: color-mix(in srgb, var(--art-blue) 84%, black); }
50% { background: var(--art-coral); color: color-mix(in srgb, var(--art-coral) 86%, black); }
75% { background: var(--art-sand); color: color-mix(in srgb, var(--art-sand) 84%, black); }
}
/* Card two: a client logotype on flat red; steam rises on hover. */
.work__media--red {
display: grid;
place-items: center;
background: var(--art-red);
}
.work__logo {
position: relative;
color: var(--art-bone);
font-family: var(--font-logo);
font-size: clamp(3.4rem, 10.5vw, 9.5rem);
font-style: italic;
font-weight: 500;
font-variation-settings: "opsz" 144;
line-height: 1;
letter-spacing: -0.03em;
}
.work__logo-sub {
position: absolute;
top: 128%;
left: 50%;
font-family: var(--font-text);
font-size: clamp(0.5625rem, 0.9vw, 0.75rem);
font-style: normal;
font-weight: var(--weight);
font-variation-settings: var(--optical);
letter-spacing: 0;
white-space: nowrap;
translate: -50% 0;
}
.work__steam path {
fill: none;
stroke: var(--art-bone);
stroke-width: 3;
stroke-linecap: round;
stroke-dasharray: 0.3 0.7;
animation: work-steam 2.4s linear infinite;
animation-play-state: paused;
}
.work__steam path:nth-child(2) { animation-delay: -0.8s; }
.work__steam path:nth-child(3) { animation-delay: -1.6s; }
@keyframes work-steam {
0% { stroke-dashoffset: 0.3; stroke-opacity: 0; }
30% { stroke-opacity: 0.85; }
100% { stroke-dashoffset: -0.7; stroke-opacity: 0; }
}
/* Card three: a bowl printed in one ink on cobalt; a band of light passes over it on hover. */
.work__media--blue {
background: color-mix(in srgb, var(--art-cobalt) 72%, var(--art-bone));
}
.work__sheen {
background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.42) 48%, rgba(255, 255, 255, 0.05) 56%, transparent 66%);
background-size: 250% 100%;
animation: work-sheen 2.2s var(--ease-media) infinite;
animation-play-state: paused;
}
@keyframes work-sheen {
from { background-position: 100% 0; }
to { background-position: -50% 0; }
}
/* Card four: a wall of celadon tile; light ripples across the glaze on hover. */
.work__media--tile {
background: var(--art-bone);
}
.work__tiles {
position: absolute;
inset: 0;
background:
radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.4), transparent 45%),
repeating-linear-gradient(90deg, var(--art-bone) 0 3px, transparent 3px 48px),
repeating-linear-gradient(0deg, var(--art-bone) 0 3px, transparent 3px 48px),
linear-gradient(160deg, var(--art-celadon), color-mix(in srgb, var(--art-celadon) 70%, var(--art-cobalt)));
background-position: 0 0, calc(50% - 1.5px) 0, 0 calc(50% - 1.5px), 0 0;
}
.work__tile-mark {
position: absolute;
bottom: 7%;
left: 6%;
padding: 10px 14px 12px;
background: var(--art-bone);
color: var(--art-soot);
font-size: clamp(1.1rem, 2.4vw, 2.1rem);
font-weight: var(--weight);
line-height: 1;
letter-spacing: -0.03em;
}
.work__ripple::before,
.work__ripple::after {
content: "";
position: absolute;
top: 50%;
left: 50%;
width: 90%;
aspect-ratio: 1;
border-radius: var(--radius-round);
background: radial-gradient(circle, transparent 60%, rgba(255, 255, 255, 0.55) 68%, transparent 71%);
translate: -50% -50%;
animation: work-ripple 2.4s var(--ease-media) infinite;
animation-play-state: paused;
}
.work__ripple::after {
animation-delay: -1.2s;
}
.work__card.is-live:hover .work__ripple::before,
.work__card.is-live:hover .work__ripple::after,
.work__card.is-live .work__media-link:focus-visible .work__ripple::before,
.work__card.is-live .work__media-link:focus-visible .work__ripple::after {
animation-play-state: running;
}
@keyframes work-ripple {
from { scale: 0.1; opacity: 1; }
to { scale: 1.6; opacity: 0; }
}
.work__caption {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 24px;
margin: 8px 0 0;
}
.work__kind {
color: var(--mute);
}
@media (max-width: 52rem) {
.work__grid {
grid-template-columns: 1fr;
gap: 32px;
padding-top: 84px;
}
.work__logo {
font-size: clamp(3.4rem, 22vw, 9.5rem);
}
.work__tile-mark {
font-size: clamp(1.1rem, 5vw, 2.1rem);
}
}
@media (prefers-reduced-motion: reduce) {
.work__media--cut,
.work__motion,
.work__motion *,
.work__ripple::before,
.work__ripple::after {
animation: none;
}
}
</style>
<script>
(() => {
const live = new IntersectionObserver((entries) => {
for (const entry of entries) entry.target.classList.toggle('is-live', entry.isIntersecting);
});
for (const root of document.querySelectorAll('.work')) {
root.querySelectorAll('.work__card').forEach((card) => live.observe(card));
}
})();
</script>
About and wordmark band
A 24px about line with grey paragraphs, ruled rows for recognition and links, a small closing line, and a white band where the wordmark rises out of a blur as it comes into view.
Code
React For Figma<footer class="footer">
<div class="footer__row footer__row--about">
<h2 class="footer__lead footer__fade">TERRON is a ceramics practice led by Mira Holt, a Norwegian potter and object designer with twelve years at the wheel and the kiln.</h2>
<div class="footer__copy footer__fade">
<p class="footer__para">Started in 2014 in a shared basement in Bergen, TERRON is both a working pottery and a slow research project into local clay, wood ash and the glazes they make together.</p>
<p class="footer__para">Most pieces are made for one room at a time: a dining room, a tea house, a bathhouse wall. Some are made in small editions and sold twice a year.</p>
<a class="footer__link footer__link--solo" href="#story">Read the long story</a>
</div>
</div>
<div class="footer__row">
<h2 class="footer__label footer__fade">Recognition</h2>
<ul class="footer__lines footer__fade">
<li>3× Nordic Craft Prize · Shortlist 2019, 2022</li>
<li>Form Award · Tableware · Ostra Hotel (Studio Havn)</li>
<li>Wallpaper Table Edit · Fjell Tea House</li>
<li>Shown at · Oslo Design Week · Kaia Market · Salone Satellite</li>
</ul>
</div>
<div class="footer__row">
<h2 class="footer__label footer__fade">Find her</h2>
<ul class="footer__lines footer__links footer__fade">
<li><a class="footer__link" href="#studio">Studio Visits</a></li>
<li><a class="footer__link" href="#editions">Editions</a></li>
<li><a class="footer__link" href="#journal">Kiln Journal</a></li>
<li><a class="footer__link" href="#letters">Letters</a></li>
<li><a class="footer__link" href="#press">Press Kit</a></li>
</ul>
</div>
<div class="footer__row footer__row--end">
<p class="footer__small footer__fade"><span class="footer__strong">© 2026</span><br>Fired in Bergen</p>
<p class="footer__small footer__fade"><span class="footer__strong">This is a short selection of the work.</span><br>The full archive opens on request.</p>
</div>
<div class="footer__band">
<svg class="footer__mark" role="img" aria-label="TERRON" viewBox="0 25.9 420 75.5" preserveAspectRatio="xMidYMax meet">
<text class="footer__word" x="0" y="100">TERRON</text>
</svg>
</div>
</footer>
<style>
.footer {
background: var(--ink);
color: var(--paper);
}
.footer__row {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--gap-half);
min-height: var(--row-min);
padding: var(--row-pad) var(--edge) 40px;
border-bottom: 1px solid var(--hairline);
}
.footer__row--about {
padding-top: 28px;
padding-bottom: 64px;
}
.footer__row--end {
min-height: 0;
padding-bottom: 24px;
border-bottom: 0;
}
.footer__lead {
max-width: 36rem;
margin: 0;
font-size: var(--text-m);
font-weight: var(--weight);
line-height: var(--leading);
letter-spacing: var(--tracking);
}
.footer__copy {
max-width: 21.5rem;
color: var(--mute);
}
.footer__para {
margin: 0 0 15.6px;
}
.footer__label,
.footer__small {
margin: 0;
font: inherit;
letter-spacing: inherit;
}
.footer__small {
color: var(--mute);
}
.footer__strong {
color: var(--paper);
}
.footer__lines {
margin: 0;
padding: 0;
list-style: none;
color: var(--mute);
}
/* Links: the hovered one turns white with a rule, its neighbours step back. */
.footer__link {
position: relative;
color: var(--mute);
text-decoration: underline 1px transparent;
text-underline-offset: 3px;
transition: color var(--time-dim) var(--ease-dim), text-decoration-color var(--time-dim) var(--ease-dim);
}
.footer__link::after {
content: "";
position: absolute;
inset: -2px -8px;
}
.footer__links:has(.footer__link:hover, .footer__link:focus-visible) .footer__link {
color: var(--dim);
}
.footer__links:has(.footer__link:hover, .footer__link:focus-visible) .footer__link:is(:hover, :focus-visible),
.footer__link--solo:hover,
.footer__link--solo:focus-visible {
color: var(--paper);
text-decoration-color: currentColor;
}
.footer__link:focus-visible {
outline: none;
}
/* The closing band: the wordmark rises out of a blur when it comes into view. */
.footer__band {
padding: 12px var(--edge) var(--edge);
background: var(--paper);
overflow: hidden;
}
.footer__mark {
width: 100%;
height: auto;
overflow: visible;
opacity: 0;
transform: translateY(45%);
filter: blur(16px);
transition:
opacity var(--time-media) var(--ease-fade),
transform var(--time-media) var(--ease-fade),
filter var(--time-media) var(--ease-fade);
}
.footer__band.is-seen .footer__mark {
opacity: 1;
transform: none;
filter: blur(0);
}
.footer__word {
fill: var(--ink);
font-family: var(--font-text);
font-size: 100px;
font-weight: var(--weight-mark);
font-variation-settings: var(--optical);
letter-spacing: var(--tracking-mark);
}
.footer__fade {
opacity: 0;
transform: translateY(8px);
transition: opacity var(--time-fade) var(--ease-fade), transform var(--time-fade) var(--ease-fade);
transition-delay: calc(var(--order, 0) * var(--stagger-fade));
}
.footer__row.is-seen .footer__fade {
opacity: 1;
transform: none;
}
@media (max-width: 52rem) {
.footer__link {
display: inline-flex;
align-items: center;
min-height: var(--tap);
min-width: var(--tap);
}
.footer__link::after {
content: none;
}
.footer__row {
grid-template-columns: 1fr;
gap: 24px;
padding-bottom: 48px;
}
.footer__lead {
font-size: var(--text-m-phone);
}
.footer__copy,
.footer__lines,
.footer__label {
font-size: 14px;
}
.footer__row--end {
gap: 16px;
}
}
@media (prefers-reduced-motion: reduce) {
.footer__fade,
.footer__mark {
opacity: 1;
transform: none;
filter: none;
transition: none;
}
}
</style>
<script>
(() => {
const CAP_HEIGHT = 72.7;
const OVERSHOOT = 1.4;
function fitWordmark(mark) {
const box = mark.querySelector('.footer__word').getBBox();
mark.setAttribute('viewBox', `${box.x} ${100 - CAP_HEIGHT - OVERSHOOT} ${box.width} ${CAP_HEIGHT + 2 * OVERSHOOT}`);
}
const seen = new IntersectionObserver((entries) => {
for (const entry of entries) {
if (!entry.isIntersecting) continue;
entry.target.classList.add('is-seen');
seen.unobserve(entry.target);
}
}, { threshold: 0.15 });
for (const root of document.querySelectorAll('.footer')) {
for (const row of root.querySelectorAll('.footer__row')) {
row.querySelectorAll('.footer__fade').forEach((item, order) => item.style.setProperty('--order', order));
seen.observe(row);
}
const band = root.querySelector('.footer__band');
document.fonts.ready.then(() => {
fitWordmark(band.querySelector('.footer__mark'));
seen.observe(band);
});
}
})();
</script>
Style
- --paper #ffffff
- --ink #000000
- --mute #808080
- --dim #3a3a3a
- --hairline rgba(255, 255, 255, 0.15)
- --glow rgba(255, 255, 255, 0.9)
- --glow-dark rgba(0, 0, 0, 0.55)
- --art-cobalt #1d3cff
- --art-ember #ff4d12
- --art-lilac #b04dff
- --art-rose #ff6fae
- --art-red #ff1f0f
- --art-tangerine #ff8b35
- --art-blue #1238ff
- --art-coral #ff4144
- --art-sand #b59f7e
- --art-bone #f4efe4
- --art-celadon #9fd8c4
- --art-ochre #ffb000
- --art-soot #160f0c
Type
- Inter 600 with the optical size axis pinned at 32 (Inter Display) for everything: header, lists, captions, buttons, statements, and the giant wordmark at weight 500, stands in for Inter Display, which is the site's only face; the variable Inter on Google Fonts carries the same Display cut on its opsz axis
- Fraunces italic 500 at opsz 144 for one client logotype drawn inside a work card, never page text, stands in for a client's own logo image in a project thumbnail
Motion
- Intro deck: three pictures pop in at the centre 0.25s apart, each from 80% scale and zero opacity over 0.8s on cubic-bezier(0.25, 1, 0.5, 1); the last piece follows 0.75s after the first.
- When the last piece has settled the others leave in a cascade 0.17s apart, each 0.25s ease-out to 96% scale and nothing.
- The wordmark rises 45% of its height out of a 16px blur over 0.6s on cubic-bezier(0.38, 0.1, 0, 0.99); it starts with the last piece instead of after the cascade so the board still shows it whole.
- The piece that stays drifts at 96px per second on each axis and bounces off the edges of the first screen like a screensaver logo; the wordmark sits above it in difference blend, so letters over the picture show its negative.
- Clicking the drifting piece stamps a copy where it was (90% opacity, up to five, the oldest leaving with the same 0.25s drop) and pops the next picture in with the 0.8s intro curve.
- A 23px white dot in difference blend replaces the pointer on the first screen and follows it with a short lag; over the piece a small label fades up 8px beneath it.
- Header lines, statements and ruled rows fade up 8px over 0.42s on cubic-bezier(0.38, 0.1, 0, 0.99), 60ms apart.
- Buttons fill on hover over 0.5s on cubic-bezier(0.44, 0, 0.56, 1): light sweeps in from the left, black turns white, the button widens 6px and the arrow slides out right while a new one slides in from the left. Pill links do the same in reverse, white to black.
- Hovering a link in a list dims its siblings and underlines it, 0.3s ease-in-out.
- Work pictures pull their edges in 0.7% with clip-path over 0.6s on cubic-bezier(0.25, 0.1, 0.25, 1) on hover, and their moving layer cross-fades in on the same curve; one card hard-cuts between four colourways every 0.5s the whole time it is on screen.
Rules
- One face, one weight (600), one size (12px with 15.6px leading, -0.01em tracking) for nearly everything; 24px for the few statements; the wordmark is the only big type.
- Two tones: pure white for the first screen and the closing band, pure black for everything between; second lines and lists are #808080.
- The header sits on an eight-column grid with 10px gaps and 16px page padding: a dot, a three-line statement (first line black, two grey), a three-word nav, and city plus live local time pinned right.
- Below the first screen the page splits into two halves 32px apart: labels on the left, grey lists in 180px columns starting at the middle line.
- Rows are separated by hairlines at 15% white and are about 134px tall, mostly empty.
- The wordmark spans 98% of the width, cropped to its cap height, set very tight at weight 500, sitting on the bottom edge.
- Colour lives only in pictures, which are flat saturated grounds (cobalt, red, tangerine, lilac to ember skies) with one object each.
- Corners: 4px on buttons, 8px on the floating pill and the note card, round only for the dot and the cursor.
base.css
/* Fonts: Inter with its optical size axis pinned at 32, which is Inter Display; Fraunces only draws one client logotype inside a work card. */
@import url("https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400..700&family=Fraunces:ital,opsz,wght@1,9..144,400..600&display=swap");
:root {
--paper: #ffffff; /* the white first screen, the wordmark band, hover fills on black */
--ink: #000000; /* every word on white, the black rooms below the first screen */
--mute: #808080; /* second lines, lists, captions: the grey most text is set in */
--dim: #3a3a3a; /* list items pushed back while a sibling is hovered, on black */
--hairline: rgba(255, 255, 255, 0.15); /* row rules and button outlines on black */
--glow: rgba(255, 255, 255, 0.9); /* the light that sweeps across a button while it fills */
--glow-dark: rgba(0, 0, 0, 0.55); /* the same sweep inverted, on the white pill */
--art-cobalt: #1d3cff; /* artwork: cobalt glaze, kiln walls */
--art-ember: #ff4d12; /* artwork: kiln heat, signal red-orange */
--art-lilac: #b04dff; /* artwork: top of the sky gradients */
--art-rose: #ff6fae; /* artwork: middle of the sky gradients */
--art-red: #ff1f0f; /* artwork: flat red ground */
--art-tangerine: #ff8b35; /* artwork: colourway one of the cut loop */
--art-blue: #1238ff; /* artwork: colourway two of the cut loop */
--art-coral: #ff4144; /* artwork: colourway three of the cut loop */
--art-sand: #b59f7e; /* artwork: colourway four of the cut loop */
--art-bone: #f4efe4; /* artwork: unglazed clay, tile grout */
--art-celadon: #9fd8c4; /* artwork: celadon glaze */
--art-ochre: #ffb000; /* artwork: ash glaze, test tiles */
--art-soot: #160f0c; /* artwork: kiln shadow, firebrick */
--font-text: "Inter", "Helvetica Neue", Arial, sans-serif; /* the one face for everything, set as Inter Display */
--font-logo: "Fraunces", Georgia, serif; /* a client logotype drawn inside one work card, never page text */
--optical: "opsz" 32; /* pins Inter to its Display cut at every size */
--weight: 600; /* every word on the page */
--weight-mark: 500; /* the giant wordmark */
--text-s: 12px; /* the house size: header, lists, captions, buttons */
--text-m: 24px; /* statements and the about heading */
--text-m-phone: 22px; /* statements on phones */
--leading: 1.3; /* line height of all text (15.6px at 12, 31.2px at 24) */
--tracking: -0.01em; /* -0.12px at 12, -0.24px at 24 */
--tracking-mark: -0.045em; /* the wordmark is set very tight */
--edge: 16px; /* page padding on every side */
--gutter: 10px; /* gap of the eight-column header grid */
--gap-half: 32px; /* gap between the two halves of the page and between work cards */
--list-col: 11.2rem; /* width of one grey list column in the right half */
--row-pad: 24px; /* space above the text of a ruled row */
--row-min: 134px; /* height of a ruled row */
--tap: 44px; /* smallest tappable height */
--radius-s: 4px; /* buttons */
--radius-m: 8px; /* the floating pill, its links, the note card */
--radius-round: 1000px; /* the cursor dot */
--cursor: 23px; /* the round cursor inside the first screen */
--stage-height: clamp(30rem, 56vw, 52rem); /* the first screen */
--ease-fade: cubic-bezier(0.38, 0.1, 0, 0.99); /* text fading up 8px into place */
--ease-media: cubic-bezier(0.25, 0.1, 0.25, 1); /* media inset and media cross-fades */
--ease-pop: cubic-bezier(0.25, 1, 0.5, 1); /* intro cards popping from 80% to full size */
--ease-fill: cubic-bezier(0.44, 0, 0.56, 1); /* buttons and pill links filling on hover */
--ease-dim: ease-in-out; /* lists dimming around the hovered item */
--time-fade: 0.42s; /* text fade */
--time-media: 0.6s; /* media inset, wordmark rise */
--time-pop: 0.8s; /* one intro card popping in */
--time-drop: 0.25s; /* one intro card leaving */
--time-fill: 0.5s; /* button fill */
--time-dim: 0.3s; /* list dimming */
--stagger-pop: 0.25s; /* between intro cards coming in */
--stagger-drop: 0.17s; /* between intro cards leaving */
--stagger-fade: 0.06s; /* between header lines fading in */
--cut: 0.5s; /* how long one colourway holds in a work card loop */
--drift: 96; /* pixels per second the bouncing card travels on each axis */
}
*, *::before, *::after { box-sizing: border-box; }
body {
margin: 0;
background: var(--paper);
color: var(--ink);
font-family: var(--font-text);
font-size: var(--text-s);
font-weight: var(--weight);
font-variation-settings: var(--optical);
line-height: var(--leading);
letter-spacing: var(--tracking);
-webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
For your agent
Use the kitbash MCP server at https://kitbash.me/mcp. Call get_pack("difference-deck"), then get_component for the parts you need, and build my site in that style: keep its tokens and rules, replace the placeholder copy with mine.
How to connect