Split words
Two giant words side by side fill the first screen, a rounded picture tile above the smaller one; hovering a word widens its column.
Part of the style
Stretched Word Stack
6 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/stretched-word-stack/split/figma.html?palette=c798ca1563951569
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/stretched-word-stack/split/figma.html?palette=c798ca1563951569 and pass that whole HTML document to the html_to_figma tool, so the part "Split words" 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 {
--ink: #1d0c09;
--paper: #ff6a33;
--on-picture: #ff6a33;
--picture-ground: #1d0c09;
}
</style>
<section class="split" aria-label="Main menu">
<a class="split__half split__half--a" href="#info">
<span class="split__tile">
<img class="split__picture" src="assets/lake-fog.jpg" alt="A still lake at dawn mirroring a dark forest and snowy peaks" width="1200" height="800">
</span>
<svg class="split__word" viewBox="0 -71 100 72.5" preserveAspectRatio="none" role="img" aria-label="INFO">
<text x="0" y="0" textLength="100" lengthAdjust="spacingAndGlyphs">INFO</text>
</svg>
</a>
<a class="split__half split__half--b" href="#places">
<svg class="split__word" viewBox="0 -71 100 72.5" preserveAspectRatio="none" role="img" aria-label="PLACES">
<text x="0" y="0" textLength="100" lengthAdjust="spacingAndGlyphs">PLACES</text>
</svg>
</a>
</section>
<style>
.split {
display: grid;
grid-template-columns: 1fr 1fr;
height: clamp(460px, 70vw, 900px);
background: var(--paper);
transition: grid-template-columns var(--slow) var(--ease);
}
.split:has(.split__half--a:hover, .split__half--a:focus-visible) {
grid-template-columns: 2.4fr 1fr;
}
.split:has(.split__half--b:hover, .split__half--b:focus-visible) {
grid-template-columns: 1fr 2.4fr;
}
.split__half {
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
color: var(--ink);
text-decoration: none;
outline: none;
}
.split__half:focus-visible .split__word {
outline: var(--line) solid var(--ink);
outline-offset: calc(var(--line) * -1);
}
.split__tile {
display: block;
flex: none;
margin: var(--edge) var(--edge) 0;
aspect-ratio: 16 / 9;
overflow: hidden;
border-radius: var(--radius-picture);
background: var(--picture-ground);
}
.split__picture {
width: 100%;
height: 100%;
object-fit: cover;
}
/* The word is drawn into a box that keeps no proportion, so it fills whatever space its column has. */
.split__word {
flex: 1 1 0;
width: 100%;
height: 100%;
min-height: 0;
overflow: visible;
}
.split__word text {
font-family: var(--font-display);
font-size: 100px;
font-weight: var(--weight-display);
font-stretch: var(--width-word);
fill: var(--ink);
}
@media (max-width: 40rem) {
.split,
.split:has(.split__half--a:hover, .split__half--a:focus-visible),
.split:has(.split__half--b:hover, .split__half--b:focus-visible) {
grid-template-columns: 1fr;
height: auto;
}
.split__word {
flex: none;
height: clamp(170px, 52vw, 320px);
}
.split__half--b .split__word {
height: clamp(150px, 44vw, 280px);
}
}
</style>