Spine opening
Intro: a thin black spine on the left edge widens to half the screen, then the grey half unfolds and the text fades in; a replay link runs it again.
Part of the style
Ink Spine Diptych
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/ink-spine-diptych/opening/figma.html
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/ink-spine-diptych/opening/figma.html and pass that whole HTML document to the html_to_figma tool, so the part "Spine opening" 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
<section class="opening" aria-label="Opening">
<div class="opening__stage">
<div class="opening__half opening__half--dark">
<p class="opening__mark"><span class="opening__glyph" aria-hidden="true"></span>Halflight</p>
<p class="opening__line">A reading room for the moving image, opening one shelf at a time.</p>
</div>
<div class="opening__half opening__half--light">
<p class="opening__title">Season : North Sea</p>
<p class="opening__line opening__line--small">Six evenings of harbour films, ferry footage and fishing-town home movies, shown where they were made.</p>
<button class="opening__replay" type="button">Play again</button>
</div>
</div>
</section>
<style>
.opening {
background: var(--paper);
color: var(--ink);
}
.opening__stage {
display: grid;
grid-template-columns: 1fr 1fr;
height: clamp(420px, 50vw, 720px);
overflow: hidden;
}
.opening__half {
display: flex;
flex-direction: column;
gap: var(--space-l);
min-width: 0;
padding: var(--edge);
overflow: hidden;
animation: opening-unfold var(--fold) var(--ease-fold) both;
}
.opening__half--dark {
background: var(--ink);
color: var(--paper-text);
}
.opening__half--light {
background: var(--paper);
animation-delay: calc(var(--fold) + 150ms);
}
.opening__mark,
.opening__title {
display: flex;
align-items: center;
gap: 0.14em;
margin: 0;
font-family: var(--font-display);
font-weight: var(--display-weight);
font-size: var(--display-l);
line-height: var(--leading-tight);
letter-spacing: var(--track-display);
text-transform: uppercase;
white-space: nowrap;
}
.opening__glyph {
flex: none;
width: 0.62em;
height: 0.62em;
border: 0.1em solid currentColor;
background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}
.opening__line {
max-width: 22em;
margin: 0;
font-size: var(--text-l);
line-height: var(--leading-text);
text-wrap: pretty;
}
.opening__line--small {
font-size: var(--text-m);
}
.opening__mark,
.opening__title,
.opening__line,
.opening__replay {
animation: opening-text 400ms var(--ease-fade) both;
animation-delay: calc(var(--fold) + 100ms);
}
.opening__half--light .opening__title,
.opening__half--light .opening__line,
.opening__half--light .opening__replay {
animation-delay: calc(var(--fold) * 2 + 250ms);
}
.opening__replay {
align-self: flex-start;
min-height: 44px;
margin-top: auto;
padding: 0;
border: 0;
background: none;
color: inherit;
font: var(--display-weight) var(--display-s) / 1 var(--font-display);
cursor: pointer;
transition: opacity var(--quick) var(--ease-fade);
}
.opening__replay:hover { opacity: 0.5; }
.opening__replay:focus-visible { outline: var(--rule) solid currentColor; outline-offset: 4px; }
@keyframes opening-unfold {
from { clip-path: inset(0 calc(100% - var(--spine)) 0 0); }
to { clip-path: inset(0 0 0 0); }
}
@keyframes opening-text {
from { opacity: 0; }
to { opacity: 1; }
}
@media (max-width: 40rem) {
.opening__stage {
grid-template-columns: 1fr;
grid-template-rows: auto auto;
height: auto;
}
.opening__half { min-height: 300px; }
.opening__title { white-space: normal; }
@keyframes opening-unfold {
from { clip-path: inset(0 0 calc(100% - var(--spine)) 0); }
to { clip-path: inset(0 0 0 0); }
}
}
@media (prefers-reduced-motion: reduce) {
.opening__half,
.opening__mark,
.opening__title,
.opening__line,
.opening__replay { animation: none; }
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.opening')) {
const button = root.querySelector('.opening__replay');
if (!button) continue;
button.addEventListener('click', () => {
const moving = root.querySelectorAll('.opening__half, .opening__mark, .opening__title, .opening__line, .opening__replay');
moving.forEach((el) => { el.style.animation = 'none'; });
void root.offsetWidth;
moving.forEach((el) => { el.style.animation = ''; });
});
}
})();
</script>