Scattered figures banner
A pale grey field with small cut-out portrait figures scattered and bobbing, and one heavy extended label in the middle as the link.
Part of the style
Grey Backdrop Lineup
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/grey-backdrop-lineup/banner/figma.html?palette=dc2bdc0028d52c26
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/grey-backdrop-lineup/banner/figma.html?palette=dc2bdc0028d52c26 and pass that whole HTML document to the html_to_figma tool, so the part "Scattered figures banner" 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: #181003;
--paper: #acbaa1;
--ink-mute: #7e8a74;
--night: #28200e;
--on-night: #acbaa1;
--fog: #9fad94;
--backdrop: #96a38c;
--chip: #828f78;
--rule-colour: #97a58d;
--shade: rgba(24, 16, 3, 0.42);
}
</style>
<section class="banner">
<a class="banner__link" href="#">
<span class="banner__field" aria-hidden="true">
<img class="banner__figure" style="--x: 6%; --y: 12%; --d: 0s" src="assets/burgher.jpg" alt="" width="370" height="800" />
<img class="banner__figure" style="--x: 21%; --y: 58%; --d: -1.2s" src="assets/lady-gilchrist.jpg" alt="" width="561" height="800" />
<img class="banner__figure" style="--x: 33%; --y: 6%; --d: -2.4s" src="assets/sailor.jpg" alt="" width="540" height="800" />
<img class="banner__figure" style="--x: 47%; --y: 66%; --d: -0.6s" src="assets/serf.jpg" alt="" width="450" height="800" />
<img class="banner__figure" style="--x: 60%; --y: 4%; --d: -3s" src="assets/young-girl.jpg" alt="" width="540" height="800" />
<img class="banner__figure" style="--x: 72%; --y: 54%; --d: -1.8s" src="assets/burgher.jpg" alt="" width="370" height="800" />
<img class="banner__figure" style="--x: 85%; --y: 14%; --d: -0.9s" src="assets/serf.jpg" alt="" width="450" height="800" />
<img class="banner__figure" style="--x: 91%; --y: 62%; --d: -2.1s" src="assets/sailor.jpg" alt="" width="540" height="800" />
<img class="banner__figure" style="--x: 2%; --y: 70%; --d: -3.3s" src="assets/young-girl.jpg" alt="" width="540" height="800" />
</span>
<span class="banner__label">Open Kitchen Nights</span>
<span class="banner__sub">Bake one shift with us before you apply</span>
</a>
</section>
<style>
.banner {
padding: var(--space-xl) var(--edge);
background: var(--paper);
}
.banner__link {
position: relative;
display: grid;
place-content: center;
justify-items: center;
gap: var(--space-s);
min-height: clamp(320px, 34vw, 480px);
overflow: hidden;
background: var(--backdrop);
color: var(--ink);
text-align: center;
text-decoration: none;
}
.banner__link:focus-visible {
outline: var(--rule-bold) solid var(--ink);
outline-offset: 3px;
}
.banner__field {
position: absolute;
inset: 0;
}
.banner__figure {
position: absolute;
left: var(--x);
top: var(--y);
width: clamp(36px, 4.4vw, 62px);
height: auto;
aspect-ratio: 2 / 3;
object-fit: cover;
object-position: 50% 40%;
filter: grayscale(1) brightness(1.3) contrast(1.45);
mix-blend-mode: multiply;
animation: banner-bob 3.6s ease-in-out infinite;
animation-delay: var(--d);
transition: scale var(--time-slow) var(--ease);
}
.banner__link:hover .banner__figure {
scale: 1.12;
}
.banner.is-paused .banner__figure {
animation-play-state: paused;
}
@keyframes banner-bob {
0%, 100% { translate: 0 0; }
50% { translate: 0 -8px; }
}
.banner__label {
position: relative;
z-index: 1;
padding: 0 var(--space-m);
font-family: var(--font-wide);
font-stretch: var(--wide);
font-size: clamp(22px, 3vw, 40px);
font-weight: 800;
letter-spacing: 0.01em;
line-height: 1.1;
text-transform: uppercase;
transition: letter-spacing var(--time-slow) var(--ease);
}
.banner__link:hover .banner__label {
letter-spacing: 0.05em;
}
.banner__sub {
position: relative;
z-index: 1;
background: var(--backdrop);
padding: 0 var(--space-m);
font-size: var(--text-xs);
font-weight: 700;
}
@media (prefers-reduced-motion: reduce) {
.banner__figure {
animation: none;
}
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.banner')) {
new IntersectionObserver((entries) => {
for (const entry of entries) root.classList.toggle('is-paused', !entry.isIntersecting);
}).observe(root);
}
})();
</script>