Floating card spotlight
Large tilted project cards with hole-punch dots that scroll under a sticky caption row of line, disciplines, city, year and a link.
Part of the style
Bulging Orb Index
6 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/bulging-orb-index/spotlight/figma.html?palette=050bd00a57bfe0ab
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/bulging-orb-index/spotlight/figma.html?palette=050bd00a57bfe0ab and pass that whole HTML document to the html_to_figma tool, so the part "Floating card spotlight" 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: #1c0d06;
--paper: #91816b;
--ink-soft: #4e412f;
--tile-grey: #675945;
--tile-dark: #25140b;
--pop: #978068;
--pop-soft: #888077;
--tile-sky: #978068;
}
</style>
<section class="spotlight" aria-label="Project spotlight">
<article class="spotlight__slide">
<div class="spotlight__row">
<p class="spotlight__line">Lift-off identity and motion for <b>Gasbag Air Tours</b></p>
<p class="spotlight__meta spotlight__meta--wide">Brand Identity, Animation, Signage, Packaging, Web, Copywriting</p>
<p class="spotlight__meta">High Desert</p>
<p class="spotlight__meta">2026</p>
<a class="spotlight__more" href="#">View Project</a>
</div>
<figure class="spotlight__card">
<img class="spotlight__photo" src="assets/balloons-dawn.jpg" alt="Two striped balloons being filled on a field at dawn, a crew member beside them" width="1024" height="642">
<span class="spotlight__hole spotlight__hole--a" aria-hidden="true"></span>
<span class="spotlight__hole spotlight__hole--b" aria-hidden="true"></span>
<span class="spotlight__hole spotlight__hole--c" aria-hidden="true"></span>
</figure>
</article>
<article class="spotlight__slide spotlight__slide--flip">
<div class="spotlight__row">
<p class="spotlight__line">A painted homeware range for <b>Hollow Hill Ceramics</b></p>
<p class="spotlight__meta spotlight__meta--wide">Packaging, Illustration, Print, Art Direction</p>
<p class="spotlight__meta">Riverside</p>
<p class="spotlight__meta">2025</p>
<a class="spotlight__more" href="#">View Project</a>
</div>
<figure class="spotlight__card">
<img class="spotlight__photo" src="assets/liberty-vase.jpg" alt="A wide glazed bowl painted with a face among white roses" width="800" height="570" loading="lazy">
<span class="spotlight__hole spotlight__hole--a" aria-hidden="true"></span>
<span class="spotlight__hole spotlight__hole--b" aria-hidden="true"></span>
<span class="spotlight__hole spotlight__hole--c" aria-hidden="true"></span>
</figure>
</article>
</section>
<style>
.spotlight {
overflow: clip;
}
.spotlight__slide {
--tilt: var(--card-tilt);
--drift: 0px;
position: relative;
height: clamp(640px, 60vw, 880px);
}
.spotlight__slide--flip {
--tilt: calc(var(--card-tilt) * -1);
}
.spotlight__row {
position: sticky;
top: 45%;
z-index: 2;
display: grid;
grid-template-columns: minmax(0, 1.3fr) minmax(0, 2.2fr) minmax(0, 0.8fr) minmax(0, 0.5fr) auto;
align-items: center;
column-gap: var(--gap);
margin-top: 300px;
padding: 0 var(--edge);
}
.spotlight__line,
.spotlight__meta {
margin: 0;
font-size: var(--text-m);
line-height: 1.15;
}
.spotlight__meta {
color: var(--ink-soft);
}
.spotlight__more {
display: inline-flex;
align-items: center;
min-height: var(--tap);
color: var(--ink);
font-size: var(--text-m);
font-weight: 700;
text-decoration: underline;
text-decoration-thickness: var(--line);
text-underline-offset: 3px;
}
.spotlight__more:focus-visible {
outline: var(--line) solid var(--ink);
outline-offset: 2px;
}
.spotlight__card {
position: absolute;
top: 150px;
left: 50%;
z-index: 1;
width: min(66%, 940px);
margin: 0;
transform: translateX(calc(-50% + var(--drift))) rotate(var(--tilt));
will-change: transform;
}
.spotlight__slide--flip .spotlight__card {
width: min(54%, 760px);
}
.spotlight__photo {
width: 100%;
height: auto;
aspect-ratio: 1.6;
object-fit: cover;
}
.spotlight__hole {
position: absolute;
width: var(--hole);
height: var(--hole);
border-radius: var(--radius-round);
background: var(--paper);
}
.spotlight__hole--a { top: 18px; left: 18px; }
.spotlight__hole--b { bottom: 18px; left: 18px; }
.spotlight__hole--c { top: 18px; right: 18px; }
@media (max-width: 56rem) {
.spotlight__row {
grid-template-columns: minmax(0, 1fr) auto;
row-gap: var(--space-xs);
}
.spotlight__meta--wide { grid-column: 1 / -1; grid-row: 2; }
.spotlight__meta:not(.spotlight__meta--wide) { display: none; }
.spotlight__card,
.spotlight__slide--flip .spotlight__card {
width: 86%;
}
}
@media (max-width: 40rem) {
.spotlight__slide { height: 420px; }
.spotlight__row { position: static; margin-top: 24px; }
.spotlight__card { top: 112px; }
.spotlight__hole { --hole: 14px; }
}
</style>
<script>
(() => {
const still = matchMedia('(prefers-reduced-motion: reduce)');
for (const root of document.querySelectorAll('.spotlight')) {
const slides = [...root.querySelectorAll('.spotlight__slide')];
const live = new Set();
let frame = 0;
const base = parseFloat(getComputedStyle(root).getPropertyValue('--card-tilt')) || 4;
const update = () => {
frame = 0;
const height = innerHeight;
for (const slide of live) {
const box = slide.getBoundingClientRect();
const p = Math.max(0, Math.min(1, (height - box.top) / (height + box.height)));
const sign = slide.classList.contains('spotlight__slide--flip') ? -1 : 1;
slide.style.setProperty('--tilt', `${(sign * (base + (0.5 - p) * 10)).toFixed(2)}deg`);
slide.style.setProperty('--drift', `${((0.5 - p) * 60 * sign).toFixed(1)}px`);
}
};
const ask = () => { if (!frame) frame = requestAnimationFrame(update); };
const watch = new IntersectionObserver((entries) => {
for (const entry of entries) {
if (entry.isIntersecting) live.add(entry.target);
else live.delete(entry.target);
}
if (!still.matches) ask();
});
slides.forEach((slide) => watch.observe(slide));
if (!still.matches) addEventListener('scroll', ask, { passive: true });
}
})();
</script>