Opening
A dark screen where two green words part to the edges and a cloud of slipped tiles flies out of the centre, with a pill to play it again.
Part of the style
Green Screen Darkroom
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/green-screen-darkroom/intro/figma.html?palette=eaf6679dab0c19c5
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/green-screen-darkroom/intro/figma.html?palette=eaf6679dab0c19c5 and pass that whole HTML document to the html_to_figma tool, so the part "Opening" 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 {
--night: #dfe4e8;
--panel: #d3d8dc;
--tile: #c3c8cd;
--ink: #030101;
--ink-soft: #423b3b;
--ink-mute: #767b7f;
--ink-faint: #9a9fa4;
--on-signal: #dfe4e8;
--signal: #a73c13;
--signal-deep: #b64c27;
}
</style>
<section class="intro" aria-label="Opening">
<p class="intro__words" aria-hidden="true"><span class="intro__word intro__word--left">Plinthe</span><span class="intro__word intro__word--right">Archive</span></p>
<ul class="intro__cloud" aria-label="Objects in the archive">
<li class="intro__tile" style="--x: -2; --y: -30; --w: 9;"><img class="intro__picture" src="assets/plum-vase.jpg" alt="Celadon vase" width="533" height="800"></li>
<li class="intro__tile" style="--x: -20; --y: 12; --w: 10;"><img class="intro__picture" src="assets/cap.jpg" alt="Quilted linen cap" width="800" height="762"></li>
<li class="intro__tile" style="--x: 17; --y: -20; --w: 8;"><img class="intro__picture" src="assets/ewer.jpg" alt="Blue ewer with white relief" width="693" height="800"></li>
<li class="intro__tile" style="--x: -6; --y: 28; --w: 9;"><img class="intro__picture" src="assets/tea-bowl.jpg" alt="Carved red lacquer bowl" width="800" height="533"></li>
<li class="intro__tile intro__tile--screen" style="--x: 9; --y: -6; --w: 7;"><span class="intro__screen">Plinthe<br>Archive</span></li>
<li class="intro__tile" style="--x: 1; --y: 0; --w: 12;"><img class="intro__picture" src="assets/portrait-poet.jpg" alt="Albumen portrait of a bearded man in a dark coat" width="592" height="800"></li>
<li class="intro__tile" style="--x: -13; --y: -14; --w: 8;"><img class="intro__picture" src="assets/amphora.jpg" alt="Brown glazed flask" width="533" height="800"></li>
<li class="intro__tile" style="--x: 14; --y: 16; --w: 10;"><img class="intro__picture" src="assets/mirror.jpg" alt="Round bronze mirror" width="800" height="800"></li>
<li class="intro__tile" style="--x: 6; --y: 34; --w: 8;"><img class="intro__picture" src="assets/cloth-panel.jpg" alt="Red damask silk panel" width="690" height="800"></li>
<li class="intro__tile" style="--x: -11; --y: 4; --w: 8;"><img class="intro__picture" src="assets/portrait-elder.jpg" alt="Albumen portrait of an old man with a white beard" width="645" height="800"></li>
</ul>
<button class="intro__replay" type="button">Play again</button>
</section>
<style>
.intro {
position: relative;
height: clamp(520px, 62vw, 820px);
overflow: hidden;
background: var(--night);
container-type: inline-size;
}
.intro__words {
position: absolute;
inset: 50% var(--edge) auto;
margin: 0;
color: var(--signal);
font-size: var(--text-xs);
font-weight: var(--weight-medium);
letter-spacing: var(--track-caps);
line-height: 1;
text-transform: uppercase;
}
.intro__word {
position: absolute;
top: 0;
opacity: 0;
transition: left var(--arrive) var(--ease), right var(--arrive) var(--ease), opacity var(--time) var(--ease);
}
.intro__word--left {
left: calc(50% - 4.4em);
}
.intro__word--right {
right: calc(50% - 4.6em);
}
.intro.is-words .intro__word {
opacity: 1;
}
.intro.is-apart .intro__word--left {
left: 0;
}
.intro.is-apart .intro__word--right {
right: 0;
}
.intro__cloud {
position: absolute;
inset: 0;
margin: 0;
padding: 0;
list-style: none;
}
.intro__tile {
position: absolute;
left: 50%;
top: 50%;
width: calc(var(--w) * 1cqw);
aspect-ratio: 5 / 6;
margin: calc(var(--w) * -0.6cqw) 0 0 calc(var(--w) * -0.5cqw);
overflow: hidden;
border-radius: var(--radius-chip);
background: var(--tile);
box-shadow: var(--shadow-slip);
opacity: 0;
transform: translate(0, 0) scale(0.2);
transition: transform var(--arrive) var(--ease-out), opacity var(--quick) var(--ease);
transition-delay: calc(var(--order, 0) * 60ms);
}
.intro.is-cloud .intro__tile {
opacity: 1;
transform: translate(calc(var(--x) * 1cqw), calc(var(--y) * 0.62cqw)) scale(1);
}
.intro__picture {
width: 100%;
height: 100%;
object-fit: cover;
filter: saturate(0.75) contrast(1.05);
}
.intro__tile--screen {
background: var(--signal);
}
.intro__screen {
display: block;
padding: 0.6cqw;
color: var(--on-signal);
font-size: max(7px, 0.8cqw);
font-weight: var(--weight-medium);
line-height: 1;
text-transform: uppercase;
}
.intro__replay {
position: absolute;
left: 50%;
bottom: var(--edge);
translate: -50% 0;
min-height: var(--tap);
padding: 0 var(--space-l);
border: var(--rule) solid var(--ink-faint);
border-radius: var(--radius-field);
background: transparent;
color: var(--ink-soft);
font: var(--weight-medium) var(--text-xs)/1 var(--font-body);
letter-spacing: var(--track-caps);
text-transform: uppercase;
cursor: pointer;
transition: color var(--time) var(--ease), border-color var(--time) var(--ease);
}
.intro__replay:hover,
.intro__replay:focus-visible {
border-color: var(--signal);
color: var(--signal);
outline: none;
}
@media (max-width: 40rem) {
.intro__tile {
width: calc(var(--w) * 1.9cqw);
margin: calc(var(--w) * -1.1cqw) 0 0 calc(var(--w) * -0.95cqw);
}
.intro.is-cloud .intro__tile {
transform: translate(calc(var(--x) * 1.9cqw), calc(var(--y) * 1.15cqw)) scale(1);
}
}
@media (prefers-reduced-motion: reduce) {
.intro__word,
.intro__tile {
transition: none;
}
}
</style>
<script>
(() => {
const still = matchMedia('(prefers-reduced-motion: reduce)');
for (const root of document.querySelectorAll('.intro')) {
root.querySelectorAll('.intro__tile').forEach((tile, order) => tile.style.setProperty('--order', order));
let timers = [];
const play = () => {
timers.forEach(clearTimeout);
root.classList.remove('is-words', 'is-apart', 'is-cloud');
if (still.matches) {
root.classList.add('is-words', 'is-apart', 'is-cloud');
return;
}
timers = [
setTimeout(() => root.classList.add('is-words'), 200),
setTimeout(() => root.classList.add('is-apart'), 800),
setTimeout(() => root.classList.add('is-cloud'), 1500),
];
};
root.querySelector('.intro__replay').addEventListener('click', play);
const once = new IntersectionObserver((entries) => {
if (!entries.some((entry) => entry.isIntersecting)) return;
once.disconnect();
play();
});
once.observe(root);
}
})();
</script>