Offset feature
One greyscale picture filling the right half, wiping down on view, with the caption stack hanging off its left edge over empty grey.
Part of the style
Blackletter Credit Stack
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/blackletter-credit-stack/offset-feature/figma.html?palette=bcfbd17fceb87e6e
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/blackletter-credit-stack/offset-feature/figma.html?palette=bcfbd17fceb87e6e and pass that whole HTML document to the html_to_figma tool, so the part "Offset feature" 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: #f0f0f0;
--paper-lift: #ffffff;
--ink: #000000;
--ink-deep: #000000;
--night: #000000;
--night-ink: #e3e3e3;
--rule: #000000;
--oxblood: #913066;
--blush: #e9c6d5;
}
</style>
<section class="offset-feature">
<figure class="offset-feature__frame">
<img class="offset-feature__picture" src="assets/marble-back.jpg" alt="White marble bust of a woman seen from behind, hair braided into a knot" width="832" height="1024" loading="eager">
</figure>
<a class="offset-feature__caption" href="#">
<span class="offset-feature__client">KESTREL HALL</span>
<span class="offset-feature__maker">Edda Rønning</span>
</a>
</section>
<style>
.offset-feature {
position: relative;
display: grid;
grid-template-columns: 1fr 1fr;
align-items: end;
min-height: clamp(420px, 50vw, 760px);
background: var(--paper);
}
.offset-feature__frame {
grid-column: 2;
grid-row: 1;
align-self: stretch;
margin: 0;
overflow: hidden;
background: var(--paper-lift);
clip-path: inset(0 0 100% 0);
transition: clip-path var(--wipe) var(--ease-out);
}
.offset-feature.is-seen .offset-feature__frame {
clip-path: inset(0 0 0 0);
}
.offset-feature__picture {
width: 100%;
height: 100%;
object-fit: cover;
object-position: 50% 30%;
filter: grayscale(1) contrast(1.08);
transform: scale(1.08);
transition: transform 1600ms var(--ease-out);
}
.offset-feature.is-seen .offset-feature__picture {
transform: scale(1);
}
/* The caption stack hangs off the picture's left edge: label, rule, name, then three hairlines. */
.offset-feature__caption {
grid-column: 1;
grid-row: 1;
justify-self: end;
display: grid;
width: var(--caption-w);
margin-bottom: var(--space-m);
color: var(--ink-deep);
text-align: center;
text-decoration: none;
}
.offset-feature__client,
.offset-feature__maker {
display: block;
padding: 9px var(--space-xs) 10px;
line-height: 1;
}
.offset-feature__maker {
border-top: var(--hair) solid var(--rule);
color: var(--ink);
transition: color var(--quick) var(--ease);
}
.offset-feature__caption::after {
content: "";
height: 15px;
background: repeating-linear-gradient(to bottom, var(--rule) 0 1px, transparent 1px 7px);
border-top: var(--hair) solid var(--rule);
transition: opacity var(--quick) var(--ease);
}
.offset-feature__caption:hover .offset-feature__maker,
.offset-feature__caption:focus-visible .offset-feature__maker {
color: var(--oxblood);
}
.offset-feature__caption:hover::after {
opacity: 0.4;
}
@media (max-width: 52rem) {
.offset-feature {
grid-template-columns: 1fr 3fr;
grid-template-rows: auto auto;
min-height: 0;
}
.offset-feature__frame {
grid-column: 1 / -1;
aspect-ratio: 4 / 5;
margin-left: 12%;
}
.offset-feature__caption {
grid-column: 1 / -1;
grid-row: 2;
justify-self: start;
margin: var(--space-m) 0 var(--section-space) 0;
}
}
@media (prefers-reduced-motion: reduce) {
.offset-feature__frame { clip-path: none; transition: none; }
.offset-feature__picture { 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.1 });
for (const root of document.querySelectorAll('.offset-feature')) seen.observe(root);
})();
</script>