Coming-soon card
One wide black card with a live dot badge, a title, a half-muted sentence and a slowly turning line-drawn surface fading in from the right.
Part of the style
Iridescent Render Mosaic
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/iridescent-render-mosaic/teaser/figma.html?palette=f4ceffd47876adfc
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/iridescent-render-mosaic/teaser/figma.html?palette=f4ceffd47876adfc and pass that whole HTML document to the html_to_figma tool, so the part "Coming-soon card" 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 {
--paper: #7d837b;
--void: #939991;
--tile: #6a6f68;
--ink: #010101;
--ink-soft: #121212;
--ink-mute: #1f1e1c;
--line: rgba(1, 1, 1, 0.09);
--chip: rgba(1, 1, 1, 0.06);
--chip-line: rgba(1, 1, 1, 0.14);
--button: #010101;
--on-button: #787e76;
--tint-frost: #020202;
--tint-violet: #3e1f13;
--accent: #412014;
--tint-pink: #4a2518;
--tint-red: #2b0800;
--tint-amber: #583a30;
--glow: #947165;
--tint-yellow: #3e1f13;
}
</style>
<section class="teaser">
<article class="teaser__card">
<div class="teaser__copy">
<p class="teaser__badge"><span class="teaser__dot" aria-hidden="true"></span>Coming soon</p>
<h2 class="teaser__title">Smoke series</h2>
<p class="teaser__text">The third paperweight run. Same domes, tinted dark. <span class="teaser__muted">Out of the kiln for members first.</span></p>
<a class="teaser__link" href="#">Join the list <span aria-hidden="true">→</span></a>
</div>
<canvas class="teaser__canvas" role="img" aria-label="A folded sheet of fine white lines turning slowly, with a rainbow edge"></canvas>
</article>
</section>
<style>
.teaser {
padding: var(--section-space) var(--edge);
}
.teaser__card {
position: relative;
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
min-height: 260px;
overflow: hidden;
border: var(--rule) solid var(--line);
border-radius: var(--radius-card);
background: var(--void);
}
.teaser__copy {
position: relative;
z-index: 1;
display: grid;
align-content: center;
justify-items: start;
gap: var(--space-m);
padding: var(--space-xl);
}
.teaser__badge {
display: inline-flex;
align-items: center;
gap: 8px;
margin: 0;
padding: 5px 12px;
border-radius: var(--radius-pill);
background: rgba(243, 238, 231, 0.08);
color: var(--ink);
font-size: var(--text-s);
}
.teaser__dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--accent);
animation: teaser-pulse 2.4s ease-in-out infinite;
}
@keyframes teaser-pulse {
0%, 100% { box-shadow: 0 0 0 0 rgba(240, 104, 58, 0.6); }
50% { box-shadow: 0 0 0 5px rgba(240, 104, 58, 0); }
}
.teaser__title {
margin: 0;
color: var(--ink);
font-family: var(--font-display);
font-size: var(--display-m);
font-weight: var(--weight);
line-height: 1.1;
letter-spacing: -0.02em;
}
.teaser__text {
max-width: var(--measure);
margin: 0;
color: var(--ink-soft);
font-size: var(--text-m);
}
.teaser__text { color: rgba(243, 238, 231, 0.78); }
.teaser__muted { color: var(--ink-mute); }
.teaser__link {
display: inline-flex;
align-items: center;
gap: 8px;
min-height: var(--tap);
color: var(--ink);
font-size: var(--text-s);
text-decoration: none;
transition: gap var(--mid) var(--ease);
}
.teaser__link:hover,
.teaser__link:focus-visible { gap: 14px; }
.teaser__link:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.teaser__canvas {
width: 100%;
height: 100%;
min-height: 260px;
-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}
@media (max-width: 760px) {
.teaser__card { grid-template-columns: 1fr; }
.teaser__canvas {
grid-row: 1;
min-height: 220px;
-webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
}
.teaser__copy { padding: 0 var(--space-l) var(--space-l); }
}
@media (prefers-reduced-motion: reduce) {
.teaser__dot { animation: none; }
}
</style>
<script>
(() => {
const still = matchMedia('(prefers-reduced-motion: reduce)');
// A ruled surface: many thin lines strung between two moving curves, so it reads as a folded sheet.
function paint(context, width, height, seconds) {
context.fillStyle = '#000';
context.fillRect(0, 0, width, height);
const lines = 90;
const t = seconds * 0.3;
const ax = width * 0.25, ay = height * 1.05;
const bx = width * 0.7, by = -height * 0.05;
for (let i = 0; i < lines; i += 1) {
const k = i / (lines - 1);
const a = k * Math.PI;
const x1 = ax + Math.cos(a + t) * width * 0.22;
const y1 = ay - Math.sin(a) * height * 0.35;
const x2 = bx + Math.cos(a * 1.4 - t * 1.3) * width * 0.16;
const y2 = by + Math.sin(a + t) * height * 0.25 + height * 0.2;
const edge = Math.pow(Math.sin(a), 6);
const glow = 0.12 + 0.6 * Math.pow(Math.abs(Math.sin(a * 1.5 + t)), 3);
context.strokeStyle = edge > 0.85
? `hsla(${(k * 360 + seconds * 40) % 360}, 90%, 70%, ${glow})`
: `rgba(243, 238, 231, ${glow})`;
context.lineWidth = 0.6;
context.beginPath();
context.moveTo(x1, y1);
context.quadraticCurveTo(width * 0.5 + Math.sin(t + k * 3) * width * 0.12, height * 0.5, x2, y2);
context.stroke();
}
}
function run(canvas) {
const context = canvas.getContext('2d');
let frame = 0;
const fit = () => {
const density = Math.min(2, devicePixelRatio || 1);
canvas.width = canvas.clientWidth * density;
canvas.height = canvas.clientHeight * density;
context.setTransform(density, 0, 0, density, 0, 0);
paint(context, canvas.clientWidth, canvas.clientHeight, performance.now() / 1000);
};
const tick = (now) => {
paint(context, canvas.clientWidth, canvas.clientHeight, now / 1000);
frame = requestAnimationFrame(tick);
};
new ResizeObserver(fit).observe(canvas);
new IntersectionObserver(([entry]) => {
cancelAnimationFrame(frame);
if (entry.isIntersecting && !still.matches) frame = requestAnimationFrame(tick);
}).observe(canvas);
}
document.querySelectorAll('.teaser__canvas').forEach(run);
})();
</script>