Reel window gallery
Project cards as grey trays holding a picture in a white reel window fogged top and bottom; on hover the picture rolls down a notch and the title takes its colour.
Part of the style
Rainbow Slot Ticker
6 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/rainbow-slot-ticker/fruit-reels/figma.html?type=kraft-panel-split
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/rainbow-slot-ticker/fruit-reels/figma.html?type=kraft-panel-split and pass that whole HTML document to the html_to_figma tool, so the part "Reel window gallery" 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 */
@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500&family=Newsreader:opsz,wght@6..72,400;6..72,500&display=swap");
:root {
--font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
--font-serif: "Newsreader", Georgia, serif;
}
</style>
<section class="fruit-reels" aria-labelledby="fruit-reels-title">
<div class="fruit-reels__head">
<h2 class="fruit-reels__title" id="fruit-reels-title">Recent work</h2>
<span class="fruit-reels__count">06 projects</span>
</div>
<ul class="fruit-reels__grid">
<li class="fruit-reels__card">
<a class="fruit-reels__link" href="#">
<span class="fruit-reels__window"><img class="fruit-reels__img" src="assets/lemons.jpg" alt="Painting of lemons, grapes and pears on a swirling blue cloth" width="800" height="662" loading="lazy" /></span>
<span class="fruit-reels__name">Bright Rind</span>
<span class="fruit-reels__meta">Citrus stall identity</span>
</a>
</li>
<li class="fruit-reels__card">
<a class="fruit-reels__link" href="#">
<span class="fruit-reels__window"><img class="fruit-reels__img" src="assets/plums.jpg" alt="Painting of a heap of dark plums on green grass" width="800" height="565" loading="lazy" /></span>
<span class="fruit-reels__name">Low Orchard</span>
<span class="fruit-reels__meta">Preserve labels</span>
</a>
</li>
<li class="fruit-reels__card">
<a class="fruit-reels__link" href="#">
<span class="fruit-reels__window"><img class="fruit-reels__img" src="assets/apples.jpg" alt="Painting of a round orange table seen from above with a plate of apples" width="598" height="800" loading="lazy" /></span>
<span class="fruit-reels__name">Round Table</span>
<span class="fruit-reels__meta">Café menus</span>
</a>
</li>
<li class="fruit-reels__card">
<a class="fruit-reels__link" href="#">
<span class="fruit-reels__window"><img class="fruit-reels__img" src="assets/strawberries.jpg" alt="Painting of a glass jar of wild strawberries, an orange, nuts and white china" width="800" height="573" loading="lazy" /></span>
<span class="fruit-reels__name">Jar & Jug</span>
<span class="fruit-reels__meta">Packaging system</span>
</a>
</li>
<li class="fruit-reels__card">
<a class="fruit-reels__link" href="#">
<span class="fruit-reels__window"><img class="fruit-reels__img" src="assets/grapes.jpg" alt="Painting of apples and a basket of grapes on a white tablecloth" width="800" height="640" loading="lazy" /></span>
<span class="fruit-reels__name">White Cloth</span>
<span class="fruit-reels__meta">Pop-up market kit</span>
</a>
</li>
<li class="fruit-reels__card">
<a class="fruit-reels__link" href="#">
<span class="fruit-reels__window"><img class="fruit-reels__img" src="assets/abundance.jpg" alt="Painting of a stone ledge heaped with grapes, berries and a glass of water" width="800" height="662" loading="lazy" /></span>
<span class="fruit-reels__name">Full Ledge</span>
<span class="fruit-reels__meta">Seasonal launch</span>
</a>
</li>
</ul>
</section>
<style>
.fruit-reels {
padding: var(--space-l) var(--edge) var(--section-space);
}
.fruit-reels__head {
display: flex;
justify-content: space-between;
align-items: baseline;
margin-bottom: var(--space-m);
}
.fruit-reels__title {
margin: 0;
font-size: var(--text-m);
font-weight: 400;
}
.fruit-reels__count {
color: var(--ink-soft);
}
.fruit-reels__grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: var(--gap);
margin: 0;
padding: 0;
list-style: none;
}
.fruit-reels__card:nth-child(6n + 1) { --word: var(--amber); }
.fruit-reels__card:nth-child(6n + 2) { --word: var(--pink); }
.fruit-reels__card:nth-child(6n + 3) { --word: var(--orange); }
.fruit-reels__card:nth-child(6n + 4) { --word: var(--red); }
.fruit-reels__card:nth-child(6n + 5) { --word: var(--blue); }
.fruit-reels__card:nth-child(6n + 6) { --word: var(--green); }
.fruit-reels__link {
display: grid;
grid-template-columns: 1fr auto;
gap: var(--space-s) var(--space-m);
padding: var(--space-m);
border-radius: var(--radius-l);
background: var(--tray);
color: var(--ink);
text-decoration: none;
}
.fruit-reels__link:focus-visible {
outline: 2px solid var(--word);
outline-offset: 2px;
}
.fruit-reels__window {
position: relative;
grid-column: 1 / -1;
aspect-ratio: 4 / 3;
overflow: hidden;
border: var(--rule) solid var(--tray-line);
border-radius: var(--radius-m);
background: var(--paper);
}
.fruit-reels__window::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(var(--fade), transparent 22%, transparent 78%, var(--fade));
opacity: 0.85;
transition: opacity var(--settle) var(--ease-settle);
pointer-events: none;
}
.fruit-reels__img {
width: 100%;
height: 118%;
object-fit: cover;
transform: translateY(-15%);
transition: transform var(--settle) var(--ease-settle);
}
.fruit-reels__link:hover .fruit-reels__img,
.fruit-reels__link:focus-visible .fruit-reels__img {
transform: translateY(0);
}
.fruit-reels__link:hover .fruit-reels__window::after,
.fruit-reels__link:focus-visible .fruit-reels__window::after {
opacity: 0.35;
}
.fruit-reels__name {
transition: color var(--quick) var(--ease);
}
.fruit-reels__link:hover .fruit-reels__name,
.fruit-reels__link:focus-visible .fruit-reels__name {
color: var(--word);
}
.fruit-reels__meta {
color: var(--ink-soft);
text-align: right;
}
@media (max-width: 860px) {
.fruit-reels__grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 520px) {
.fruit-reels__grid {
grid-template-columns: minmax(0, 1fr);
}
}
</style>