Programme rows
A huge section head over a fan, then rows of date, title and a short paragraph with stacked capital links.
Part of the style
Concertina Card Fan
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/concertina-card-fan/programme/figma.html?palette=d12d427770eca2b3
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/concertina-card-fan/programme/figma.html?palette=d12d427770eca2b3 and pass that whole HTML document to the html_to_figma tool, so the part "Programme rows" lands as editable layers in my open Figma file. Fonts come from Google Fonts: if a face is missing in Figma, pick the closest one.
Code
<style>
/* Goes after the pack's base.css */
:root {
--paper: #131313;
--ink: #ffffff;
--rule: #000000;
--card-edge: #000000;
}
</style>
<section class="programme" aria-labelledby="programme-title">
<div class="programme__source">
<img src="assets/red-box.jpg" alt="A lacquered wooden box with an iron clasp" width="658" height="800">
<img src="assets/clouds.jpg" alt="A black and white photograph of clouds over a dark hill" width="649" height="800">
</div>
<div class="programme__stage" aria-hidden="true">
<div class="programme__fan" data-count="26" data-run="7"></div>
</div>
<div class="programme__inner">
<h2 class="programme__title" id="programme-title">Programme</h2>
<ol class="programme__list">
<li class="programme__row">
<p class="programme__when">Thu<br>4 June<br>18:30</p>
<h3 class="programme__name">Opening Night & the Foldover Prize</h3>
<div class="programme__body">
<p class="programme__text">Doors open on the mill floor for the first screening of the year, three short sound pieces and the prize for a first moving-image work. The evening is free; a seat is not.</p>
<p class="programme__links"><a class="programme__more" href="#">Book a seat</a><a class="programme__more" href="#">More about the prize</a></p>
</div>
</li>
<li class="programme__row">
<p class="programme__when">Fri<br>5 June</p>
<h3 class="programme__name">Studio Day</h3>
<div class="programme__body">
<p class="programme__text">Eight small studios run by the guests: projection mapping, field recording, slow animation and a whole room for paper cameras.</p>
<p class="programme__links"><a class="programme__more" href="#">See the studios</a></p>
</div>
</li>
<li class="programme__row">
<p class="programme__when">Sat<br>6 June</p>
<h3 class="programme__name">Talks in Hall 4</h3>
<div class="programme__body">
<p class="programme__text">One long day of talks under a single theme, Fold, with a break for the river.</p>
<p class="programme__links"><a class="programme__more" href="#">Running order</a></p>
</div>
</li>
</ol>
</div>
</section>
<style>
.programme {
position: relative;
overflow: hidden;
background: var(--paper);
color: var(--ink);
}
.programme__source {
display: none;
}
.programme__stage {
position: absolute;
inset: 0 0 auto;
height: clamp(420px, 46vw, 720px);
perspective: 1000px;
pointer-events: none;
}
.programme__fan {
position: absolute;
inset: 0 -15% 0 0;
transform: rotate(14deg) translateY(-6%);
transform-style: preserve-3d;
}
.programme__card {
--card-w: clamp(120px, 20vw, 300px);
--card-h: calc(var(--card-w) * 1.25);
position: absolute;
left: 50%;
top: 50%;
width: var(--card-w);
height: var(--card-h);
margin: calc(var(--card-h) / -2) 0 0 calc(var(--card-w) / -2);
border: var(--line) solid var(--card-edge);
border-radius: var(--radius-card);
background: var(--card-edge);
will-change: transform;
}
.programme__card::after {
content: "";
position: absolute;
inset: 0;
background: var(--card-edge);
opacity: var(--shade, 0);
}
.programme__img {
width: 100%;
height: 100%;
object-fit: cover;
filter: grayscale(1) contrast(1.4) brightness(1.05);
}
.programme__inner {
position: relative;
padding: var(--section-space) var(--edge);
}
.programme__title {
margin: 0 0 var(--section-space);
font-family: var(--font-display);
font-size: var(--text-xl);
font-weight: 400;
line-height: var(--leading-tight);
letter-spacing: -0.015em;
}
.programme__list {
margin: 0;
padding: 0;
list-style: none;
}
.programme__row {
display: grid;
grid-template-columns: var(--left-column) minmax(0, 1fr) minmax(0, 1.25fr);
gap: var(--gap);
padding: var(--space-m) 0 var(--space-l);
border-top: var(--line) solid var(--rule);
}
.programme__when,
.programme__text,
.programme__links {
margin: 0;
}
.programme__name {
margin: 0;
font-family: var(--font-display);
font-size: var(--text-m);
font-weight: 400;
line-height: var(--leading-solid);
text-wrap: balance;
}
.programme__body {
display: grid;
gap: var(--space-s);
max-width: 34em;
}
.programme__links {
display: grid;
justify-items: start;
}
.programme__more {
display: inline-flex;
align-items: center;
min-height: 44px;
color: inherit;
text-decoration: none;
text-transform: uppercase;
transition: opacity var(--quick) var(--ease);
}
.programme__more:hover,
.programme__more:focus-visible {
opacity: 0.55;
}
.programme__more:focus-visible {
outline: var(--line) solid var(--ink);
}
@media (max-width: 48rem) {
.programme__row {
grid-template-columns: minmax(0, 1fr);
gap: var(--space-xs);
}
.programme__name {
margin-bottom: var(--space-xs);
}
}
</style>
<script>
(() => {
const still = matchMedia('(prefers-reduced-motion: reduce)');
function setup(root) {
const stage = root.querySelector('.programme__fan');
const pictures = [...root.querySelectorAll('.programme__source img')];
const count = Number(stage.dataset.count) || 26;
const run = Number(stage.dataset.run) || 6;
const cards = [];
for (let i = 0; i < count; i += 1) {
const card = document.createElement('div');
card.className = 'programme__card';
const img = pictures[Math.floor(i / run) % pictures.length].cloneNode();
img.className = 'programme__img';
img.alt = '';
card.append(img);
stage.append(card);
cards.push(card);
}
let frame = 0;
const paint = (now) => {
const spacing = Math.max(stage.clientWidth * 0.8 / count, 12);
const seconds = now / 1000;
cards.forEach((card, i) => {
const angle = 66 * Math.sin(seconds * 0.35 - i * 0.24);
const x = (i - (count - 1) / 2) * spacing;
card.style.transform = `translate3d(${x}px, 0, 0) rotateY(${angle}deg) rotateX(12deg)`;
card.style.setProperty('--shade', (Math.abs(angle) / 66 * 0.5).toFixed(3));
});
};
const tick = (now) => {
paint(now);
frame = requestAnimationFrame(tick);
};
new IntersectionObserver(([entry]) => {
cancelAnimationFrame(frame);
if (!entry.isIntersecting) return;
if (still.matches) paint(3000);
else frame = requestAnimationFrame(tick);
}).observe(root);
new ResizeObserver(() => paint(still.matches ? 3000 : performance.now())).observe(stage);
}
document.querySelectorAll('.programme').forEach(setup);
})();
</script>