Drifting Print Field
Loose photographic prints, unframed and unbordered, drift in staggered columns over a warm off-white page while one heavy uppercase name holds the centre underneath them. Made for photographers, image studios and anyone whose portfolio should be the pictures and almost nothing else.
Parts
Print burst intro
One print appears in the centre, then the others glide out from it to a scattered layout while the name comes into focus.
Code
React For Figma<section class="intro" aria-label="Opening">
<div class="intro__stage">
<h1 class="intro__name">Ilse Marwood</h1>
<img class="intro__print intro__print--wide" style="--x: 50%; --y: 6%;" src="assets/wave-large.jpg" alt="A blue wave curling over" width="960" height="640">
<img class="intro__print intro__print--wide intro__print--mono" style="--x: 26%; --y: 22%;" src="assets/barks.jpg" alt="Sailing boats under a storm sky" width="800" height="518">
<img class="intro__print intro__print--tall" style="--x: 72%; --y: 22%;" src="assets/sitter.jpg" alt="An old portrait of a woman with long hair" width="634" height="800">
<img class="intro__print intro__print--tall" style="--x: 3%; --y: 46%;" src="assets/dunes-tall.jpg" alt="A dirt road toward pale hills" width="534" height="800">
<img class="intro__print intro__print--tall intro__print--mono" style="--x: 97%; --y: 40%;" src="assets/window.jpg" alt="A figure at a bright window" width="541" height="800">
<img class="intro__print intro__print--wide" style="--x: 29%; --y: 80%;" src="assets/crater.jpg" alt="Purple desert flowers on dark rock" width="800" height="534">
<img class="intro__print intro__print--wide intro__print--mono" style="--x: 71%; --y: 80%;" src="assets/wave-fjord.jpg" alt="Waves breaking on dark stones" width="800" height="450">
<img class="intro__print intro__print--wide" style="--x: 99%; --y: 92%;" src="assets/bathers.jpg" alt="Bathers on a grey beach" width="800" height="479">
<img class="intro__print intro__print--wide" style="--x: 2%; --y: 96%;" src="assets/dunes-cadiz.jpg" alt="White flowers in desert sand" width="800" height="533">
</div>
<button class="intro__replay" type="button">Replay</button>
</section>
<style>
.intro {
position: relative;
overflow: hidden;
background: var(--paper);
}
.intro__stage {
position: relative;
height: var(--stage);
}
.intro__name {
position: absolute;
inset: 50% var(--edge) auto;
z-index: 1;
margin: 0;
transform: translateY(-50%);
font-family: var(--font-display);
font-size: var(--display-l);
font-stretch: var(--stretch-display);
font-weight: var(--weight-display);
line-height: 1;
letter-spacing: var(--track);
text-align: center;
text-transform: uppercase;
text-wrap: balance;
opacity: 0;
filter: blur(12px);
transition: opacity var(--fade) var(--ease-glide), filter var(--fade) var(--ease-glide);
}
.intro.is-named .intro__name {
opacity: 1;
filter: blur(0);
}
/* Each print is placed by its own --x/--y; the script measures the way back to the centre as --dx/--dy. */
.intro__print {
position: absolute;
left: var(--x);
top: var(--y);
z-index: 2;
height: auto;
background: var(--shade);
object-fit: cover;
opacity: 0;
transform: translate(-50%, -50%) translate(var(--dx, 0px), var(--dy, 0px)) scale(0.6);
transition:
transform var(--glide) var(--ease-glide) calc(var(--i, 0) * 45ms),
opacity var(--fade) var(--ease-soft) calc(var(--i, 0) * 45ms),
filter var(--fade) var(--ease-soft);
}
.intro__print--wide { width: var(--print-wide); aspect-ratio: 4 / 3; }
.intro__print--tall { width: var(--print-tall); aspect-ratio: 3 / 4; }
.intro__print--mono { filter: grayscale(1) contrast(1.08); }
.intro__print:first-of-type { z-index: 3; }
.intro.is-seeded .intro__print:first-of-type {
opacity: 1;
}
.intro.is-burst .intro__print {
opacity: 1;
transform: translate(-50%, -50%) translate(0, 0) scale(1);
}
.intro__replay {
position: absolute;
left: var(--edge);
bottom: var(--space-s);
z-index: 4;
min-width: var(--tap);
min-height: var(--tap);
padding: 0 var(--space-s);
border: 0;
background: transparent;
color: var(--ink);
font-family: var(--font-display);
font-size: var(--text-s);
font-stretch: var(--stretch-display);
font-weight: var(--weight-display);
letter-spacing: var(--track);
text-transform: uppercase;
cursor: pointer;
}
.intro__replay:hover,
.intro__replay:focus-visible {
text-decoration: underline;
text-underline-offset: 4px;
}
.intro__replay:focus-visible {
outline: var(--rule) solid var(--ink);
}
@media (max-width: 640px) {
.intro__name {
inset: 50% 0 auto;
max-width: 6.5em;
margin-inline: auto;
font-size: var(--display-xl);
}
}
</style>
<script>
(() => {
const reduce = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
for (const root of document.querySelectorAll(".intro")) {
const stage = root.querySelector(".intro__stage");
const prints = [...root.querySelectorAll(".intro__print")];
let timers = [];
const measure = () => {
const box = stage.getBoundingClientRect();
prints.forEach((print, i) => {
print.style.setProperty("--i", i);
const x = (parseFloat(print.style.getPropertyValue("--x")) / 100) * box.width;
const y = (parseFloat(print.style.getPropertyValue("--y")) / 100) * box.height;
print.style.setProperty("--dx", `${box.width / 2 - x}px`);
print.style.setProperty("--dy", `${box.height / 2 - y}px`);
});
};
const play = () => {
timers.forEach(clearTimeout);
root.classList.remove("is-seeded", "is-burst", "is-named");
measure();
if (reduce) {
root.classList.add("is-seeded", "is-burst", "is-named");
return;
}
void root.offsetWidth;
timers = [
setTimeout(() => root.classList.add("is-seeded"), 300),
setTimeout(() => root.classList.add("is-burst"), 900),
setTimeout(() => root.classList.add("is-named"), 1400),
];
};
root.querySelector(".intro__replay").addEventListener("click", play);
window.addEventListener("resize", () => {
if (root.classList.contains("is-burst")) measure();
});
play();
}
})();
</script>
Plus mark menu
A thin plus at top centre that turns into a cross and opens a page of huge capital links, a centred statement and a contact row.
Code
React For Figma<header class="menu is-open">
<div class="menu__bar">
<button class="menu__toggle" type="button" aria-expanded="true" aria-label="Close menu">
<span class="menu__cross" aria-hidden="true"></span>
</button>
</div>
<div class="menu__panel">
<nav class="menu__links" aria-label="Main">
<a class="menu__link" href="#" aria-current="page"><span class="menu__word">Overview</span></a>
<a class="menu__link" href="#"><span class="menu__word">Work</span></a>
</nav>
<div class="menu__statement">
<p class="menu__line"><span class="menu__word">Hello.</span></p>
<p class="menu__line"><span class="menu__word">I'm Ilse Marwood, a photographer working between the coast and the desert, on portraits, landscapes and slow commissions for people who make things.</span></p>
<p class="menu__line"><span class="menu__word">Booking spring and summer, anywhere the road goes.</span></p>
</div>
<div class="menu__foot">
<a class="menu__contact" href="#">Contact me</a>
<small class="menu__fine">© 2027 Ilse Marwood · all rights reserved</small>
<div class="menu__social">
<a class="menu__contact" href="#" aria-label="Instagram">IG</a>
<a class="menu__contact" href="#" aria-label="Vimeo">VI</a>
</div>
</div>
</div>
</header>
<style>
.menu {
position: relative;
background: var(--paper);
color: var(--ink);
font-family: var(--font-display);
font-stretch: var(--stretch-display);
font-weight: var(--weight-display);
letter-spacing: var(--track);
text-transform: uppercase;
}
.menu__bar {
display: flex;
justify-content: center;
padding-top: var(--space-s);
}
.menu__toggle {
display: grid;
place-items: center;
width: var(--tap);
height: var(--tap);
padding: 0;
border: 0;
background: transparent;
color: inherit;
cursor: pointer;
}
.menu__toggle:focus-visible {
outline: var(--rule) solid var(--ink);
}
/* The plus: two hairlines that turn a quarter and a half into a cross. */
.menu__cross {
position: relative;
width: var(--cross);
height: var(--cross);
transition: transform var(--glide) var(--ease-glide);
}
.menu__cross::before,
.menu__cross::after {
content: "";
position: absolute;
left: 50%;
top: 50%;
width: 100%;
height: var(--rule);
background: currentColor;
transform: translate(-50%, -50%);
}
.menu__cross::after {
transform: translate(-50%, -50%) rotate(90deg);
}
.menu.is-open .menu__cross {
transform: rotate(45deg) scale(0.7);
}
.menu__panel {
display: grid;
gap: var(--space-l);
padding: var(--space-m) var(--edge) var(--space-m);
text-align: center;
visibility: hidden;
max-height: 0;
overflow: hidden;
opacity: 0;
transition:
opacity var(--fade) var(--ease-soft),
visibility 0s linear var(--glide),
max-height 0s linear var(--glide);
}
.menu.is-open .menu__panel {
visibility: visible;
max-height: 1600px;
opacity: 1;
transition: opacity var(--fade) var(--ease-soft);
}
.menu__links {
display: grid;
justify-items: center;
}
.menu__link {
display: block;
overflow: hidden;
color: inherit;
font-size: var(--display-xl);
line-height: 1;
padding-block: 0.04em;
text-decoration: none;
}
.menu__link:focus-visible {
outline: var(--rule) solid var(--ink);
}
/* Every word rises out of its own mask. */
.menu__word {
display: inline-block;
transform: translateY(105%);
transition: transform var(--glide) var(--ease-glide), opacity var(--fade) var(--ease-soft);
}
.menu.is-open .menu__word {
transform: translateY(0);
}
.menu.is-open .menu__link:nth-child(2) .menu__word { transition-delay: 60ms; }
.menu.is-open .menu__line .menu__word { transition-delay: 140ms; }
.menu__link:hover .menu__word,
.menu__link:focus-visible .menu__word {
opacity: 0.35;
}
.menu__link[aria-current="page"] .menu__word {
text-decoration: underline;
text-decoration-thickness: 0.06em;
text-underline-offset: 0.12em;
}
.menu__statement {
display: grid;
gap: 1em;
max-width: 44ch;
margin: 0 auto;
font-size: var(--display-m);
line-height: 1.04;
text-wrap: balance;
}
.menu__line {
margin: 0;
overflow: hidden;
}
.menu__foot {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
gap: var(--space-m);
padding-top: var(--space-m);
}
.menu__contact {
display: inline-flex;
align-items: center;
min-height: var(--tap);
min-width: var(--tap);
color: inherit;
font-size: var(--display-m);
line-height: 1;
text-decoration: none;
justify-self: start;
}
.menu__contact:hover,
.menu__contact:focus-visible {
opacity: 0.35;
}
.menu__fine {
font-family: var(--font-body);
font-size: var(--text-s);
font-weight: 400;
letter-spacing: 0;
text-transform: none;
}
.menu__social {
display: flex;
justify-self: end;
gap: var(--space-s);
}
.menu__social .menu__contact {
justify-content: center;
}
@media (max-width: 640px) {
.menu__foot {
grid-template-columns: 1fr auto;
}
.menu__fine {
grid-column: 1 / -1;
grid-row: 2;
}
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll(".menu")) {
const toggle = root.querySelector(".menu__toggle");
toggle.addEventListener("click", () => {
const open = root.classList.toggle("is-open");
toggle.setAttribute("aria-expanded", String(open));
toggle.setAttribute("aria-label", open ? "Close menu" : "Open menu");
});
root.addEventListener("keydown", (event) => {
if (event.key === "Escape" && root.classList.contains("is-open")) toggle.click();
});
}
})();
</script>
Drifting print field
The signature: staggered columns of prints drift upward at different speeds over a centred name; hover a print and the rest fade back.
Code
React For Figma<section class="field" aria-label="Selected pictures">
<span class="field__plus" aria-hidden="true"></span>
<h2 class="field__name">Ilse Marwood</h2>
<div class="field__cols">
<div class="field__col field__col--outer" data-speed="14" data-offset="120">
<div class="field__track">
<a class="field__print field__print--tall" href="#"><img class="field__img" src="assets/dunes-tall.jpg" alt="A dirt road toward pale hills" width="534" height="800"></a>
<a class="field__print field__print--wide field__print--mono" href="#"><img class="field__img" src="assets/wave-fjord.jpg" alt="Waves breaking on dark stones" width="800" height="450"></a>
<a class="field__print field__print--tall" href="#"><img class="field__img" src="assets/sitter.jpg" alt="An old portrait of a woman with long hair" width="634" height="800"></a>
</div>
</div>
<div class="field__col" data-speed="22" data-offset="40">
<div class="field__track">
<a class="field__print field__print--wide" href="#"><img class="field__img" src="assets/wave-large.jpg" alt="A blue wave curling over" width="960" height="640"></a>
<a class="field__print field__print--wide" href="#"><img class="field__img" src="assets/crater.jpg" alt="Purple desert flowers on dark rock" width="800" height="534"></a>
<a class="field__print field__print--tall field__print--mono" href="#"><img class="field__img" src="assets/window.jpg" alt="A figure at a bright window" width="541" height="800"></a>
</div>
</div>
<div class="field__col field__col--centre" data-speed="10" data-offset="0">
<div class="field__track">
<a class="field__print field__print--wide" href="#"><img class="field__img" src="assets/bathers.jpg" alt="Bathers on a grey beach" width="800" height="479"></a>
<a class="field__print field__print--wide" href="#"><img class="field__img" src="assets/dunes-cadiz.jpg" alt="White flowers in desert sand" width="800" height="533"></a>
</div>
</div>
<div class="field__col" data-speed="18" data-offset="260">
<div class="field__track">
<a class="field__print field__print--tall field__print--mono" href="#"><img class="field__img" src="assets/sitter.jpg" alt="An old portrait of a woman with long hair" width="634" height="800"></a>
<a class="field__print field__print--wide" href="#"><img class="field__img" src="assets/barks.jpg" alt="Sailing boats under a storm sky" width="800" height="518"></a>
<a class="field__print field__print--tall" href="#"><img class="field__img" src="assets/dunes-tall.jpg" alt="A dirt road toward pale hills" width="534" height="800"></a>
</div>
</div>
<div class="field__col field__col--outer" data-speed="26" data-offset="300">
<div class="field__track">
<a class="field__print field__print--tall" href="#"><img class="field__img" src="assets/window.jpg" alt="A figure at a bright window" width="541" height="800"></a>
<a class="field__print field__print--wide" href="#"><img class="field__img" src="assets/crater.jpg" alt="Purple desert flowers on dark rock" width="800" height="534"></a>
<a class="field__print field__print--wide field__print--mono" href="#"><img class="field__img" src="assets/wave-large.jpg" alt="A blue wave curling over" width="960" height="640"></a>
</div>
</div>
</div>
</section>
<style>
.field {
position: relative;
height: var(--stage);
overflow: hidden;
background: var(--paper);
}
.field__plus {
position: absolute;
left: 50%;
top: var(--space-m);
z-index: 3;
width: var(--cross);
height: var(--cross);
transform: translateX(-50%);
pointer-events: none;
}
.field__plus::before,
.field__plus::after {
content: "";
position: absolute;
left: 0;
top: 50%;
width: 100%;
height: var(--rule);
background: var(--ink);
}
.field__plus::after {
transform: rotate(90deg);
}
/* The name sits under the prints: they are allowed to slide across it. */
.field__name {
position: absolute;
inset: 50% var(--edge) auto;
z-index: 1;
margin: 0;
transform: translateY(-50%);
font-family: var(--font-display);
font-size: var(--display-l);
font-stretch: var(--stretch-display);
font-weight: var(--weight-display);
line-height: 1;
letter-spacing: var(--track);
text-align: center;
text-transform: uppercase;
text-wrap: balance;
}
/* Five columns, the outer two cut by the page edge. */
.field__cols {
position: absolute;
inset: 0 -12%;
z-index: 2;
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: var(--gap);
}
.field__col {
overflow: hidden;
}
.field__track {
display: flex;
flex-direction: column;
align-items: center;
will-change: transform;
}
.field__print {
display: block;
flex: none;
margin-bottom: clamp(48px, 8vw, 128px);
background: var(--shade);
transition: opacity var(--fade) var(--ease-soft);
}
.field__col--centre .field__print {
margin-bottom: clamp(220px, 30vw, 440px);
}
.field__col:nth-child(even) .field__print:nth-child(odd) { transform: translateX(-14%); }
.field__col:nth-child(odd) .field__print:nth-child(even) { transform: translateX(12%); }
.field__print--wide { width: var(--print-wide); aspect-ratio: 4 / 3; }
.field__print--tall { width: var(--print-tall); aspect-ratio: 3 / 4; }
.field__img {
width: 100%;
height: 100%;
object-fit: cover;
transition: filter var(--fade) var(--ease-soft);
}
.field__print--mono .field__img { filter: grayscale(1) contrast(1.08); }
.field__cols:hover .field__print { opacity: 0.28; }
.field__cols .field__print:hover,
.field__cols .field__print:focus-visible { opacity: 1; }
.field__print:hover .field__img,
.field__print:focus-visible .field__img { filter: none; }
.field__print:focus-visible {
outline: var(--rule) solid var(--ink);
outline-offset: 4px;
}
@media (max-width: 640px) {
.field__cols {
inset: 0 -22%;
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.field__col--outer { display: none; }
.field__name {
inset: 50% 0 auto;
max-width: 6.5em;
margin-inline: auto;
font-size: var(--display-xl);
}
}
</style>
<script>
(() => {
const reduce = window.matchMedia("(prefers-reduced-motion: reduce)");
for (const root of document.querySelectorAll(".field")) {
const cols = [...root.querySelectorAll(".field__col")].map((col) => {
const track = col.querySelector(".field__track");
for (const print of [...track.children]) {
const copy = print.cloneNode(true);
copy.setAttribute("aria-hidden", "true");
copy.tabIndex = -1;
track.append(copy);
}
return { col, track, speed: Number(col.dataset.speed) || 16, offset: Number(col.dataset.offset) || 0 };
});
const place = () => {
for (const c of cols) {
const half = c.track.scrollHeight / 2 || 1;
c.track.style.transform = `translateY(${-(c.offset % half)}px)`;
}
};
let pace = 1;
let target = 1;
let visible = false;
let last = 0;
let frame = 0;
root.addEventListener("pointerenter", () => { target = 0.25; });
root.addEventListener("pointerleave", () => { target = 1; });
const tick = (now) => {
const dt = Math.min(0.05, (now - last) / 1000 || 0);
last = now;
pace += (target - pace) * Math.min(1, dt * 4);
for (const c of cols) c.offset += c.speed * pace * dt;
place();
frame = requestAnimationFrame(tick);
};
const start = () => {
if (frame || reduce.matches || !visible) return;
last = performance.now();
frame = requestAnimationFrame(tick);
};
const stop = () => {
cancelAnimationFrame(frame);
frame = 0;
};
new IntersectionObserver(([entry]) => {
visible = entry.isIntersecting;
visible ? start() : stop();
}).observe(root);
reduce.addEventListener("change", () => (reduce.matches ? stop() : start()));
place();
}
})();
</script>
Single print viewer
A staggered rail of tiny prints on the left and one large picture in the middle that swaps with a fade and blur.
Code
React For Figma<section class="viewer" aria-label="Salt Hours, one picture at a time">
<ol class="viewer__rail">
<li class="viewer__item"><button class="viewer__thumb is-active" type="button" aria-pressed="true" data-full="assets/wave-large.jpg" data-alt="A blue wave curling over"><img class="viewer__mini" src="assets/wave-large.jpg" alt="Picture 1" width="960" height="640"></button></li>
<li class="viewer__item"><button class="viewer__thumb" type="button" aria-pressed="false" data-full="assets/wave-fjord.jpg" data-alt="Waves breaking on dark stones"><img class="viewer__mini" src="assets/wave-fjord.jpg" alt="Picture 2" width="800" height="450"></button></li>
<li class="viewer__item"><button class="viewer__thumb" type="button" aria-pressed="false" data-full="assets/sitter.jpg" data-alt="An old portrait of a woman with long hair"><img class="viewer__mini" src="assets/sitter.jpg" alt="Picture 3" width="634" height="800"></button></li>
<li class="viewer__item"><button class="viewer__thumb" type="button" aria-pressed="false" data-full="assets/crater.jpg" data-alt="Purple desert flowers on dark rock"><img class="viewer__mini" src="assets/crater.jpg" alt="Picture 4" width="800" height="534"></button></li>
<li class="viewer__item"><button class="viewer__thumb" type="button" aria-pressed="false" data-full="assets/barks.jpg" data-alt="Sailing boats under a storm sky"><img class="viewer__mini" src="assets/barks.jpg" alt="Picture 5" width="800" height="518"></button></li>
<li class="viewer__item"><button class="viewer__thumb" type="button" aria-pressed="false" data-full="assets/window.jpg" data-alt="A figure at a bright window"><img class="viewer__mini" src="assets/window.jpg" alt="Picture 6" width="541" height="800"></button></li>
<li class="viewer__item"><button class="viewer__thumb" type="button" aria-pressed="false" data-full="assets/bathers.jpg" data-alt="Bathers on a grey beach"><img class="viewer__mini" src="assets/bathers.jpg" alt="Picture 7" width="800" height="479"></button></li>
<li class="viewer__item"><button class="viewer__thumb" type="button" aria-pressed="false" data-full="assets/dunes-tall.jpg" data-alt="A dirt road toward pale hills"><img class="viewer__mini" src="assets/dunes-tall.jpg" alt="Picture 8" width="534" height="800"></button></li>
<li class="viewer__item"><button class="viewer__thumb" type="button" aria-pressed="false" data-full="assets/dunes-cadiz.jpg" data-alt="White flowers in desert sand"><img class="viewer__mini" src="assets/dunes-cadiz.jpg" alt="Picture 9" width="800" height="533"></button></li>
</ol>
<figure class="viewer__stage">
<div class="viewer__frame">
<img class="viewer__picture" src="assets/wave-large.jpg" alt="A blue wave curling over" width="960" height="640">
</div>
<figcaption class="viewer__caption">
<span class="viewer__title">Salt Hours</span>
<span class="viewer__count"><span class="viewer__now">01</span> / 09</span>
<a class="viewer__back" href="#">Back</a>
</figcaption>
</figure>
</section>
<style>
.viewer {
display: grid;
grid-template-columns: auto minmax(0, 1fr);
gap: var(--gap);
padding: var(--space-m) var(--edge) var(--space-l);
background: var(--paper);
}
/* The rail: tiny prints, each nudged sideways so the column wavers. */
.viewer__rail {
display: flex;
flex-direction: column;
gap: var(--space-xs);
width: 96px;
margin: 0;
padding: 0;
list-style: none;
}
.viewer__item:nth-child(3n + 2) { padding-left: 18px; }
.viewer__item:nth-child(3n + 3) { padding-left: 34px; }
.viewer__thumb {
position: relative;
display: flex;
align-items: center;
min-width: var(--tap);
min-height: var(--tap);
padding: 0;
border: 0;
background: transparent;
cursor: pointer;
}
.viewer__mini {
width: 52px;
height: auto;
object-fit: cover;
opacity: 0.55;
transition: opacity var(--fade) var(--ease-soft), transform var(--fade) var(--ease-glide);
}
.viewer__thumb::before {
content: "";
position: absolute;
left: 0;
top: 0;
width: 0;
height: 2px;
background: var(--ink);
transition: width var(--glide) var(--ease-glide);
}
.viewer__thumb:hover .viewer__mini,
.viewer__thumb:focus-visible .viewer__mini {
opacity: 1;
transform: translateX(4px);
}
.viewer__thumb.is-active .viewer__mini { opacity: 1; }
.viewer__thumb.is-active::before { width: 40px; }
.viewer__thumb:focus-visible {
outline: var(--rule) solid var(--ink);
outline-offset: 2px;
}
.viewer__stage {
display: grid;
gap: var(--space-s);
justify-items: center;
margin: 0;
}
.viewer__frame {
display: grid;
place-items: center;
width: 100%;
height: clamp(260px, 44vw, 620px);
}
.viewer__picture {
max-width: 100%;
max-height: 100%;
width: auto;
height: auto;
object-fit: contain;
transition:
opacity var(--fade) var(--ease-glide),
filter var(--fade) var(--ease-glide),
transform var(--fade) var(--ease-glide);
}
.viewer.is-swapping .viewer__picture {
opacity: 0;
filter: blur(10px);
transform: scale(0.97);
}
.viewer__caption {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
width: min(100%, 860px);
font-family: var(--font-display);
font-stretch: var(--stretch-display);
font-weight: var(--weight-display);
letter-spacing: var(--track);
text-transform: uppercase;
}
.viewer__title,
.viewer__count {
font-size: var(--text-s);
}
.viewer__count {
justify-self: end;
grid-column: 3;
grid-row: 1;
color: var(--ink-soft);
}
.viewer__back {
grid-column: 2;
grid-row: 1;
display: inline-flex;
align-items: center;
min-height: var(--tap);
padding: 0 var(--space-s);
color: var(--ink);
font-size: var(--display-m);
text-decoration: none;
}
.viewer__back:hover,
.viewer__back:focus-visible { opacity: 0.35; }
@media (max-width: 640px) {
.viewer {
grid-template-columns: minmax(0, 1fr);
}
.viewer__rail {
order: 2;
flex-direction: row;
align-items: flex-start;
width: auto;
overflow-x: auto;
padding-bottom: var(--space-s);
}
.viewer__item:nth-child(n) { padding-left: 0; }
.viewer__item:nth-child(3n + 2) { padding-top: 10px; }
.viewer__item:nth-child(3n + 3) { padding-top: 20px; }
.viewer__mini { width: 44px; }
}
</style>
<script>
(() => {
const reduce = window.matchMedia("(prefers-reduced-motion: reduce)");
for (const root of document.querySelectorAll(".viewer")) {
const thumbs = [...root.querySelectorAll(".viewer__thumb")];
const picture = root.querySelector(".viewer__picture");
const now = root.querySelector(".viewer__now");
let timer = 0;
const show = (index) => {
const thumb = thumbs[index];
if (!thumb || thumb.classList.contains("is-active")) return;
thumbs.forEach((t) => {
const on = t === thumb;
t.classList.toggle("is-active", on);
t.setAttribute("aria-pressed", String(on));
});
now.textContent = String(index + 1).padStart(2, "0");
const swap = () => {
picture.src = thumb.dataset.full;
picture.alt = thumb.dataset.alt || "";
const done = () => root.classList.remove("is-swapping");
picture.decode ? picture.decode().then(done, done) : done();
};
clearTimeout(timer);
if (reduce.matches) return swap();
root.classList.add("is-swapping");
timer = setTimeout(swap, 490);
};
thumbs.forEach((thumb, i) => thumb.addEventListener("click", () => show(i)));
root.addEventListener("keydown", (event) => {
const current = thumbs.findIndex((t) => t.classList.contains("is-active"));
const step = { ArrowDown: 1, ArrowRight: 1, ArrowUp: -1, ArrowLeft: -1 }[event.key];
if (!step) return;
event.preventDefault();
const next = (current + step + thumbs.length) % thumbs.length;
show(next);
thumbs[next].focus();
});
}
})();
</script>
Grid and list index
Projects as big centred capital rows with a floating print on hover, or as a loose grid, toggled by a GRID / LIST switch.
Code
React For Figma<section class="index is-list" aria-label="All work">
<ul class="index__items">
<li class="index__item">
<a class="index__link" href="#">
<img class="index__thumb index__thumb--wide" src="assets/wave-fjord.jpg" alt="Waves breaking on dark stones" width="800" height="450">
<span class="index__title">Salt Hours</span>
<span class="index__year">2027</span>
</a>
</li>
<li class="index__item">
<a class="index__link" href="#">
<img class="index__thumb index__thumb--tall" src="assets/dunes-tall.jpg" alt="A dirt road toward pale hills" width="534" height="800">
<span class="index__title">The Long Road</span>
<span class="index__year">2026</span>
</a>
</li>
<li class="index__item">
<a class="index__link" href="#">
<img class="index__thumb index__thumb--wide" src="assets/crater.jpg" alt="Purple desert flowers on dark rock" width="800" height="534">
<span class="index__title">Bloom Year</span>
<span class="index__year">2026</span>
</a>
</li>
<li class="index__item">
<a class="index__link" href="#">
<img class="index__thumb index__thumb--tall" src="assets/window.jpg" alt="A figure at a bright window" width="541" height="800">
<span class="index__title">Window Weather</span>
<span class="index__year">2025</span>
</a>
</li>
<li class="index__item">
<a class="index__link" href="#">
<img class="index__thumb index__thumb--wide" src="assets/bathers.jpg" alt="Bathers on a grey beach" width="800" height="479">
<span class="index__title">Low Tide Letters</span>
<span class="index__year">2024</span>
</a>
</li>
<li class="index__item">
<a class="index__link" href="#">
<img class="index__thumb index__thumb--tall" src="assets/sitter.jpg" alt="An old portrait of a woman with long hair" width="634" height="800">
<span class="index__title">Sitters</span>
<span class="index__year">2023</span>
</a>
</li>
</ul>
<div class="index__switch" role="group" aria-label="View">
<button class="index__view" type="button" data-view="grid" aria-pressed="false">Grid</button>
<button class="index__view" type="button" data-view="list" aria-pressed="true">List</button>
</div>
</section>
<style>
.index {
position: relative;
padding: var(--space-xl) var(--edge) var(--space-m);
background: var(--paper);
color: var(--ink);
font-family: var(--font-display);
font-stretch: var(--stretch-display);
font-weight: var(--weight-display);
letter-spacing: var(--track);
text-transform: uppercase;
}
.index__items {
margin: 0;
padding: 0;
list-style: none;
transition: opacity var(--fade) var(--ease-soft);
}
.index.is-changing .index__items { opacity: 0; }
.index__link {
color: inherit;
text-decoration: none;
}
.index__link:focus-visible {
outline: var(--rule) solid var(--ink);
outline-offset: 4px;
}
.index__thumb {
height: auto;
background: var(--shade);
object-fit: cover;
}
.index__thumb--wide { aspect-ratio: 4 / 3; }
.index__thumb--tall { aspect-ratio: 3 / 4; }
.index__year {
color: var(--ink-soft);
font-family: var(--font-body);
font-size: var(--text-s);
font-weight: 400;
letter-spacing: 0;
}
/* List: one centred capital line per project; its print floats in on hover. */
.index.is-list .index__items {
display: grid;
justify-items: center;
}
.index.is-list .index__link {
position: relative;
display: inline-flex;
align-items: flex-start;
gap: var(--space-s);
min-height: var(--tap);
padding: var(--space-xs) 0;
}
.index.is-list .index__title {
position: relative;
z-index: 1;
font-size: var(--display-l);
line-height: 1;
transition: opacity var(--fade) var(--ease-soft);
}
.index.is-list .index__year {
position: relative;
z-index: 1;
padding-top: 0.3em;
}
.index.is-list .index__thumb {
position: absolute;
left: 50%;
top: 50%;
z-index: 2;
width: var(--print-tall);
opacity: 0;
pointer-events: none;
transform: translate(-50%, -40%) scale(0.92);
transition: opacity var(--fade) var(--ease-soft), transform var(--glide) var(--ease-glide);
}
.index.is-list .index__thumb--wide { width: var(--print-wide); }
.index.is-list .index__items:hover .index__title { opacity: 0.2; }
.index.is-list .index__link:hover .index__title,
.index.is-list .index__link:focus-visible .index__title { opacity: 1; }
.index.is-list .index__link:hover .index__thumb,
.index.is-list .index__link:focus-visible .index__thumb {
opacity: 1;
transform: translate(calc(-50% + var(--nudge, 0px)), -50%) scale(1);
}
/* Grid: the same items as loose prints in staggered columns. */
.index.is-grid .index__items {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: var(--space-l) var(--gap);
align-items: start;
max-width: 1200px;
margin: 0 auto;
}
.index.is-grid .index__item:nth-child(3n + 2) { margin-top: var(--space-xl); }
.index.is-grid .index__item:nth-child(3n + 3) { margin-top: var(--space-l); }
.index.is-grid .index__link {
display: grid;
gap: var(--space-s);
justify-items: center;
}
.index.is-grid .index__thumb { width: 80%; transition: opacity var(--fade) var(--ease-soft); }
.index.is-grid .index__thumb--tall { width: 62%; }
.index.is-grid .index__title { font-size: var(--text-s); }
.index.is-grid .index__year { display: none; }
.index.is-grid .index__items:hover .index__thumb { opacity: 0.3; }
.index.is-grid .index__link:hover .index__thumb,
.index.is-grid .index__link:focus-visible .index__thumb { opacity: 1; }
.index__switch {
display: flex;
justify-content: center;
gap: var(--space-l);
margin-top: var(--space-xl);
}
.index__view {
min-width: var(--tap);
min-height: var(--tap);
padding: 0 var(--space-xs);
border: 0;
background: transparent;
color: var(--ink-soft);
font: inherit;
font-size: var(--display-m);
letter-spacing: inherit;
text-transform: inherit;
cursor: pointer;
transition: color var(--fade) var(--ease-soft);
}
.index__view[aria-pressed="true"],
.index__view:hover,
.index__view:focus-visible { color: var(--ink); }
.index__view:focus-visible { outline: var(--rule) solid var(--ink); }
@media (max-width: 640px) {
.index.is-grid .index__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.index.is-grid .index__item:nth-child(n) { margin-top: 0; }
.index.is-grid .index__item:nth-child(even) { margin-top: var(--space-l); }
}
</style>
<script>
(() => {
const reduce = window.matchMedia("(prefers-reduced-motion: reduce)");
for (const root of document.querySelectorAll(".index")) {
const buttons = [...root.querySelectorAll(".index__view")];
let timer = 0;
const set = (view) => {
root.classList.toggle("is-grid", view === "grid");
root.classList.toggle("is-list", view === "list");
buttons.forEach((b) => b.setAttribute("aria-pressed", String(b.dataset.view === view)));
};
buttons.forEach((button) =>
button.addEventListener("click", () => {
const view = button.dataset.view;
if (root.classList.contains(`is-${view}`)) return;
clearTimeout(timer);
if (reduce.matches) return set(view);
root.classList.add("is-changing");
timer = setTimeout(() => {
set(view);
root.classList.remove("is-changing");
}, 490);
})
);
// The floating print leans toward the pointer along the row.
for (const link of root.querySelectorAll(".index__link")) {
link.addEventListener("pointermove", (event) => {
const box = link.getBoundingClientRect();
const nudge = ((event.clientX - box.left) / box.width - 0.5) * box.width * 0.6;
link.style.setProperty("--nudge", `${Math.round(nudge)}px`);
});
}
}
})();
</script>
Contact footer
A slow ribbon of small prints above one big capital call to write, a social row and the fine print.
Code
React For Figma<footer class="footer">
<div class="footer__ribbon" aria-hidden="true">
<div class="footer__track">
<img class="footer__print" src="assets/barks.jpg" alt="" width="800" height="518">
<img class="footer__print footer__print--mono" src="assets/sitter.jpg" alt="" width="634" height="800">
<img class="footer__print" src="assets/dunes-cadiz.jpg" alt="" width="800" height="533">
<img class="footer__print" src="assets/window.jpg" alt="" width="541" height="800">
<img class="footer__print footer__print--mono" src="assets/wave-fjord.jpg" alt="" width="800" height="450">
<img class="footer__print" src="assets/crater.jpg" alt="" width="800" height="534">
<img class="footer__print" src="assets/dunes-tall.jpg" alt="" width="534" height="800">
<img class="footer__print" src="assets/wave-large.jpg" alt="" width="960" height="640">
</div>
</div>
<p class="footer__kicker">Got a project, a place or a person in mind?</p>
<a class="footer__call" href="#">Write to me</a>
<a class="footer__mail" href="#">studio@ilsemarwood.example</a>
<nav class="footer__links" aria-label="Elsewhere">
<a class="footer__link" href="#">Instagram</a>
<a class="footer__link" href="#">Vimeo</a>
<a class="footer__link" href="#">Newsletter</a>
</nav>
<div class="footer__base">
<small class="footer__fine">© 2027 Ilse Marwood · all rights reserved</small>
<small class="footer__fine">Based on the coast, working anywhere</small>
</div>
</footer>
<style>
.footer {
display: grid;
justify-items: center;
gap: var(--space-m);
padding: var(--space-l) 0 var(--space-m);
background: var(--paper);
color: var(--ink);
font-family: var(--font-display);
font-stretch: var(--stretch-display);
font-weight: var(--weight-display);
letter-spacing: var(--track);
text-align: center;
text-transform: uppercase;
}
/* A slow ribbon of small prints, tall and wide mixed, on one baseline. */
.footer__ribbon {
width: 100%;
overflow: hidden;
margin-bottom: var(--space-l);
}
.footer__track {
display: flex;
align-items: flex-end;
width: max-content;
animation: footer-roll 60s linear infinite;
}
.footer__ribbon:hover .footer__track { animation-play-state: paused; }
.footer__print {
flex: none;
width: auto;
height: clamp(72px, 9vw, 132px);
margin-right: clamp(40px, 6vw, 96px);
background: var(--shade);
object-fit: cover;
}
.footer__print:nth-child(even) { height: clamp(96px, 12vw, 176px); }
.footer__print--mono { filter: grayscale(1) contrast(1.08); }
@keyframes footer-roll { to { transform: translateX(-50%); } }
.footer__kicker {
margin: 0;
padding: 0 var(--edge);
font-size: var(--display-m);
line-height: 1.04;
text-wrap: balance;
}
.footer__call,
.footer__mail,
.footer__link {
color: inherit;
text-decoration: none;
transition: opacity var(--fade) var(--ease-soft);
}
.footer__call {
font-size: var(--display-xl);
line-height: 1;
padding: 0.06em var(--edge);
}
.footer__mail {
display: inline-flex;
align-items: center;
min-height: var(--tap);
padding: 0 var(--edge);
font-family: var(--font-body);
font-size: var(--text-s);
font-weight: 400;
letter-spacing: 0;
text-transform: none;
text-decoration: underline;
text-underline-offset: 3px;
}
.footer__links {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0 var(--space-l);
padding: 0 var(--edge);
}
.footer__link {
display: inline-flex;
align-items: center;
min-height: var(--tap);
font-size: var(--display-m);
}
.footer__call:hover,
.footer__mail:hover,
.footer__link:hover,
.footer__call:focus-visible,
.footer__mail:focus-visible,
.footer__link:focus-visible { opacity: 0.35; }
.footer__call:focus-visible,
.footer__mail:focus-visible,
.footer__link:focus-visible { outline: var(--rule) solid var(--ink); }
.footer__base {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: var(--space-s) var(--space-l);
width: 100%;
padding: var(--space-l) var(--edge) 0;
}
.footer__fine {
color: var(--ink-soft);
font-family: var(--font-body);
font-size: var(--text-s);
font-weight: 400;
letter-spacing: 0;
text-transform: none;
}
@media (prefers-reduced-motion: reduce) {
.footer__track { animation: none; }
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll(".footer")) {
const track = root.querySelector(".footer__track");
for (const item of [...track.children]) track.append(item.cloneNode(true));
new IntersectionObserver(([entry]) => {
track.style.animationPlayState = entry.isIntersecting ? "" : "paused";
}).observe(root);
}
})();
</script>
Style
- --ink #0c0c0c
- --paper #f5f3f0
- --ink-soft #77736d
- --shade #e7e3dd
Type
- Archivo for headlines, links and statements, stands in for a heavy (800) neo-grotesk set in tracked capitals everywhere
- Arimo for fine print, stands in for plain Arial at 13px for the copyright line
Motion
- On load one print appears alone in the centre, then the rest glide out from it to their places over 790ms with cubic-bezier(0.77, 0, 0.175, 1), staggered, while the name sharpens from a 12px blur.
- The field's columns drift upward without end at their own speeds, so prints slide over the centred name; pointing at the field slows them down.
- The plus mark turns into a cross over 790ms on the same glide curve as the menu words rise out of a mask.
- Swapping the large picture fades out, blurs and shrinks the old one and brings the new one back over 490ms.
Rules
- One heavy grotesk, all capitals, slightly tracked, and nothing else but 13px fine print.
- Prints carry no border, shadow, radius or caption: bare rectangles in two sizes, landscape and portrait.
- Prints sit in staggered columns, the outer ones cut by the page edge, with wide empty gaps between them.
- The name is set once, centred, at a modest size, and pictures are allowed to pass over it.
- A single thin plus mark, top centre, is the only navigation chrome.
- Ink is near-black on a warm off-white; every colour on the page comes from the photographs.
base.css
/* Fonts: free Google Fonts that stand in for the site's faces. */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@92,800&family=Arimo:wght@400&display=swap");
:root {
/* Colour */
--ink: #0c0c0c; /* main text, the plus mark, rules */
--paper: #f5f3f0; /* warm off-white page the prints float on */
--ink-soft: #77736d; /* fine print, years, inactive switch words */
--shade: #e7e3dd; /* empty print slot while a picture loads */
/* Type */
--font-display: "Archivo", "Helvetica Neue", Arial, sans-serif; /* every heading, link and statement: heavy grotesk caps */
--font-body: "Arimo", Arial, sans-serif; /* the small print only */
--weight-display: 800; /* the one heavy weight */
--stretch-display: 92%; /* slightly narrow caps */
--track: 0.02em; /* caps tracking */
--display-xl: clamp(2.6rem, 5.5vw, 4.95rem); /* menu words, the big call */
--display-l: clamp(1.75rem, 3.06vw, 2.75rem); /* the centred name, list rows */
--display-m: clamp(1.15rem, 2.2vw, 2rem); /* statements, switch words, back link */
--text-s: 13px; /* copyright and captions */
/* Space */
--edge: clamp(12px, 2.2vw, 32px); /* page margin */
--gap: clamp(12px, 1.6vw, 24px); /* gutter between prints */
--space-xs: 4px; /* tiny nudge */
--space-s: 8px; /* label gap */
--space-m: 16px; /* small stack */
--space-l: 32px; /* block gap */
--space-xl: 64px; /* large block gap */
--section-space: clamp(64px, 8vw, 128px); /* between parts */
/* Prints */
--print-wide: clamp(118px, 18.9vw, 272px); /* landscape print width */
--print-tall: clamp(92px, 15vw, 216px); /* portrait print width */
--stage: clamp(560px, 62.5vw, 900px); /* height of the floating field */
--cross: 32px; /* the plus mark */
--rule: 1px; /* plus strokes and the active dash */
--tap: 44px; /* smallest hit area */
/* Motion */
--ease-glide: cubic-bezier(0.77, 0, 0.175, 1); /* every slide, reveal and open */
--ease-soft: ease; /* fades */
--fade: 490ms; /* opacity, blur and swap */
--glide: 790ms; /* slides, the plus turning into a cross, the print flight */
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.4 var(--font-body); -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("drifting-print-field"), 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