Collage stage
Grey stage with odd cut-outs from old engravings and natural history plates (a gentleman riding a snail before a torn paper sun, a balloon, an octopus in a top hat, a boxfish on a paper raindrop), each labelled with a show title and company on yellow highlighter. Figures land in turn, sway slowly, drift against the pointer at their own depths and can be dragged with a mouse.
Part of the style
Cut-Out Playhouse
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/cut-out-playhouse/collage/figma.html?palette=6bb74213cfac6da4
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/cut-out-playhouse/collage/figma.html?palette=6bb74213cfac6da4 and pass that whole HTML document to the html_to_figma tool, so the part "Collage stage" 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 {
--page: #e15659;
--paper: #e44c52;
--ink: #121212;
--ink-soft: #2a0f18;
--ink-faint: #510f14;
--shadow: rgba(18, 18, 18, 0.22);
--cut-cream: #ce474c;
--cut-steel: #8c3738;
--cut-coal: #1c1517;
--marker: #c4706f;
--cut-ochre: #b37675;
--cut-moss: #855d5c;
--cut-sky: #d75a5b;
--cut-rust: #a95858;
--cut-skin: #a17372;
--cut-plum: #6d0e18;
}
</style>
<section class="collage" aria-label="Featured this season">
<svg class="collage__defs" width="0" height="0" aria-hidden="true" focusable="false">
<filter id="collage-rough" x="-10%" y="-30%" width="120%" height="160%">
<feTurbulence type="fractalNoise" baseFrequency="0.035 0.11" numOctaves="2" seed="7" />
<feDisplacementMap in="SourceGraphic" scale="9" />
</filter>
</svg>
<div class="collage__item collage__item--snail" style="--order: 0; --tilt: -3deg; --depth: 1.4">
<div class="collage__body">
<div class="collage__figure" style="--ratio: 700 / 342">
<span class="collage__paper collage__paper--sun" aria-hidden="true"></span>
<img class="collage__cut" src="assets/snail.webp" alt="" width="700" height="342">
<img class="collage__cut collage__cut--rider" src="assets/gentleman.webp" alt="" width="257" height="600">
</div>
<a class="collage__label" href="#">
<span class="collage__mark">A Republic of Snails</span>
<span class="collage__mark collage__mark--company">Kolm Ensemble / Ida Ferro</span>
</a>
</div>
</div>
<div class="collage__item collage__item--balloon" style="--order: 1; --tilt: 4deg; --depth: 2.4">
<div class="collage__body">
<div class="collage__figure" style="--ratio: 503 / 700">
<img class="collage__cut" src="assets/balloon.webp" alt="" width="503" height="700">
</div>
<a class="collage__label collage__label--right" href="#">
<span class="collage__mark">Bathtub Over Kolm</span>
<span class="collage__mark collage__mark--company">Lamp & Ladder Company</span>
</a>
</div>
</div>
<div class="collage__item collage__item--octopus" style="--order: 2; --tilt: -6deg; --depth: 0.8">
<div class="collage__body">
<div class="collage__figure" style="--ratio: 700 / 438">
<img class="collage__cut" src="assets/octopus.webp" alt="" width="700" height="438">
<img class="collage__cut collage__cut--hat" src="assets/top-hat.webp" alt="" width="400" height="336">
</div>
<a class="collage__label" href="#">
<span class="collage__mark">The Salt Inventory</span>
<span class="collage__mark collage__mark--company">Vessel Collective</span>
</a>
</div>
</div>
<div class="collage__item collage__item--fish" style="--order: 3; --tilt: 7deg; --depth: 1.8">
<div class="collage__body">
<div class="collage__figure" style="--ratio: 700 / 273">
<span class="collage__paper collage__paper--rain" aria-hidden="true"></span>
<img class="collage__cut" src="assets/boxfish.webp" alt="" width="700" height="273">
</div>
<a class="collage__label collage__label--right" href="#">
<span class="collage__mark">Ninety Nights of Rain</span>
<span class="collage__mark collage__mark--company">Hanne Rasp</span>
</a>
</div>
</div>
</section>
<style>
.collage {
position: relative;
height: clamp(36rem, 30rem + 18vw, 46rem);
overflow: clip;
background: var(--page);
}
.collage__defs {
position: absolute;
}
.collage__item {
position: absolute;
left: var(--x);
top: var(--y);
width: var(--w);
rotate: var(--tilt);
translate: var(--dx, 0px) var(--dy, 0px);
transition: scale var(--quick) var(--ease-out);
}
.collage__item--snail { --x: 4%; --y: 18%; --w: clamp(13rem, 36%, 30rem); --lx: 36%; --ly: 96%; }
.collage__item--balloon { z-index: 2; --x: 74%; --y: 4%; --w: clamp(7rem, 16%, 13rem); --lx: -128%; --ly: 64%; }
.collage__item--octopus { --x: 42%; --y: 61%; --w: clamp(10rem, 26%, 21rem); --lx: 4%; --ly: 98%; }
.collage__item--fish { --x: 68%; --y: 56%; --w: clamp(9rem, 24%, 19rem); --lx: -4%; --ly: 108%; }
.collage__body {
position: relative;
animation:
collage-land var(--land) var(--ease-out) both,
collage-bob var(--bob) ease-in-out infinite alternate;
animation-delay: calc(var(--order) * 120ms), calc(var(--order) * -1.7s);
}
.collage.is-paused .collage__body {
animation-play-state: paused;
}
@keyframes collage-land {
from { opacity: 0; scale: 0.7; rotate: -14deg; }
to { opacity: 1; scale: 1; rotate: 0deg; }
}
@keyframes collage-bob {
from { translate: 0 0; }
to { translate: 4px -9px; }
}
.collage__figure {
position: relative;
aspect-ratio: var(--ratio);
translate: calc(var(--px, 0) * var(--depth, 1) * 1px) calc(var(--py, 0) * var(--depth, 1) * 1px);
transition: translate 0.6s var(--ease-out), filter var(--quick) var(--ease-out);
filter:
drop-shadow(2.5px 0 0 var(--paper)) drop-shadow(-2.5px 0 0 var(--paper))
drop-shadow(0 2.5px 0 var(--paper)) drop-shadow(0 -2.5px 0 var(--paper))
drop-shadow(0 10px 10px var(--shadow));
}
.collage__cut {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
max-width: none;
object-fit: contain;
pointer-events: none;
user-select: none;
}
.collage__cut--rider {
inset: auto auto 52% 30%;
width: 19%;
height: auto;
rotate: -4deg;
}
.collage__cut--hat {
inset: -24% auto auto 10%;
width: 26%;
height: auto;
transform-origin: 50% 100%;
animation: collage-tip calc(var(--bob) * 0.6) ease-in-out infinite alternate;
}
@keyframes collage-tip {
from { rotate: -9deg; translate: 0 0; }
to { rotate: 5deg; translate: 3px -6px; }
}
.collage__paper {
position: absolute;
border-radius: 50%;
clip-path: polygon(3% 38%, 10% 16%, 26% 4%, 47% 0%, 66% 3%, 84% 14%, 96% 33%, 100% 52%, 95% 72%, 83% 89%, 63% 99%, 41% 100%, 22% 92%, 8% 77%, 0% 58%);
}
.collage__paper--sun {
inset: -42% 8% 34% 22%;
background: var(--cut-ochre);
}
.collage__paper--rain {
inset: -30% 22% -24% 26%;
background: var(--cut-sky);
rotate: 14deg;
}
.collage.is-paused .collage__cut--hat { animation-play-state: paused; }
.collage.is-draggable .collage__figure { cursor: grab; touch-action: none; }
.collage__item.is-held { scale: 1.05; }
.collage__item.is-held .collage__figure {
cursor: grabbing;
filter:
drop-shadow(2.5px 0 0 var(--paper)) drop-shadow(-2.5px 0 0 var(--paper))
drop-shadow(0 2.5px 0 var(--paper)) drop-shadow(0 -2.5px 0 var(--paper))
drop-shadow(0 26px 22px var(--shadow));
}
.collage__label {
position: absolute;
left: var(--lx);
top: var(--ly);
z-index: 1;
display: grid;
justify-items: start;
rotate: calc(var(--tilt) * -1);
color: var(--ink);
font-family: var(--font-serif);
font-size: clamp(1.25rem, 0.85rem + 1.5vw, 2.25rem);
line-height: 1;
letter-spacing: var(--tracking-serif);
white-space: nowrap;
text-decoration: none;
}
.collage__label--right { justify-items: end; }
.collage__label:focus-visible { outline: var(--hairline) solid var(--ink); outline-offset: 6px; }
.collage__mark {
position: relative;
isolation: isolate;
padding: 0.06em 0.22em 0.1em;
}
.collage__mark::before {
content: "";
position: absolute;
inset: 0.02em -0.04em;
z-index: -1;
background: var(--marker);
border-radius: 0.5em 0.3em 0.45em 0.35em / 0.45em 0.5em 0.35em 0.5em;
filter: url(#collage-rough);
}
.collage__mark--company { font-style: italic; }
@media (max-width: 52rem) {
.collage { height: 42rem; }
.collage__item--snail { --x: 2%; --y: 10%; --w: clamp(15rem, 62vw, 19rem); --lx: 18%; --ly: 92%; }
.collage__item--balloon { --x: 72%; --y: 26%; --w: clamp(5.5rem, 22vw, 8rem); --lx: -150%; --ly: 60%; }
.collage__item--octopus { --x: 40%; --y: 70%; --w: clamp(10rem, 50vw, 14rem); --lx: -10%; --ly: 96%; }
.collage__item--fish { --x: 4%; --y: 50%; --w: clamp(9rem, 44vw, 13rem); --lx: 20%; --ly: 104%; }
}
@media (prefers-reduced-motion: reduce) {
.collage__body, .collage__cut--hat { animation: none; }
.collage__figure { translate: none; }
}
</style>
<script>
(() => {
const finePointer = window.matchMedia('(pointer: fine)').matches;
const watcher = new IntersectionObserver((entries) => {
for (const entry of entries) entry.target.classList.toggle('is-paused', !entry.isIntersecting);
});
function makeDraggable(root) {
let stack = 10;
for (const item of root.querySelectorAll('.collage__item')) {
const figure = item.querySelector('.collage__figure');
let start = null;
figure.addEventListener('pointerdown', (event) => {
const dx = parseFloat(item.style.getPropertyValue('--dx')) || 0;
const dy = parseFloat(item.style.getPropertyValue('--dy')) || 0;
start = { x: event.clientX - dx, y: event.clientY - dy };
stack += 1;
item.style.zIndex = stack;
item.classList.add('is-held');
figure.setPointerCapture(event.pointerId);
});
figure.addEventListener('pointermove', (event) => {
if (!start) return;
item.style.setProperty('--dx', `${event.clientX - start.x}px`);
item.style.setProperty('--dy', `${event.clientY - start.y}px`);
});
const drop = () => {
start = null;
item.classList.remove('is-held');
};
figure.addEventListener('pointerup', drop);
figure.addEventListener('pointercancel', drop);
}
}
const still = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
const PARALLAX_PX = 7;
function followPointer(root) {
root.addEventListener('pointermove', (event) => {
const box = root.getBoundingClientRect();
const x = (event.clientX - box.left) / box.width - 0.5;
const y = (event.clientY - box.top) / box.height - 0.5;
root.style.setProperty('--px', (x * -PARALLAX_PX).toFixed(2));
root.style.setProperty('--py', (y * -PARALLAX_PX).toFixed(2));
});
root.addEventListener('pointerleave', () => {
root.style.setProperty('--px', 0);
root.style.setProperty('--py', 0);
});
}
for (const root of document.querySelectorAll('.collage')) {
watcher.observe(root);
if (!still) followPointer(root);
if (!finePointer) continue;
root.classList.add('is-draggable');
makeDraggable(root);
}
})();
</script>