Centred hero with foil word
A short centred headline rising out of blur with one iridescent word, a cream pill, a star line and a first row of tiles led by a looping particle ribbon.
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/hero/figma.html
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/iridescent-render-mosaic/hero/figma.html and pass that whole HTML document to the html_to_figma tool, so the part "Centred hero with foil word" 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
<section class="hero">
<div class="hero__copy">
<h1 class="hero__title hero__rise">A cabinet of <span class="hero__foil">hand‑blown</span> glass for your next table</h1>
<p class="hero__lead hero__rise">Browse paperweights, vessels and cased colour, made one at a time in a small furnace room.</p>
<a class="hero__button hero__rise" href="#">Book a visit</a>
<p class="hero__proof hero__rise">
<span class="hero__stars" aria-hidden="true">★★★★★</span>
<span>140 five-star notes from collectors</span>
</p>
</div>
<div class="hero__row hero__rise">
<figure class="hero__tile hero__tile--wide">
<canvas class="hero__canvas" role="img" aria-label="A ribbon of orange and blue light particles turning in the dark"></canvas>
<figcaption class="hero__caption">Flame ribbon <span class="hero__kind">Study</span></figcaption>
</figure>
<figure class="hero__tile hero__tile--frost">
<img class="hero__img" src="assets/vessel-crystal.jpg" alt="A cut crystal bottle with swirling engraving" width="600" height="800" />
<figcaption class="hero__caption">Rock cut <span class="hero__kind">Vessel</span></figcaption>
</figure>
<figure class="hero__tile hero__tile--shader">
<span class="hero__blob" aria-hidden="true"></span>
<figcaption class="hero__caption">Rose melt <span class="hero__kind">Colour</span></figcaption>
</figure>
</div>
</section>
<style>
.hero {
padding: clamp(48px, 7vw, 96px) var(--edge) var(--section-space);
text-align: center;
}
.hero__copy {
display: grid;
justify-items: center;
gap: var(--space-m);
margin-bottom: clamp(40px, 6vw, 80px);
}
.hero__title {
max-width: 19ch;
margin: 0;
color: var(--ink);
font-family: var(--font-display);
font-size: var(--display-l);
font-weight: var(--weight);
line-height: var(--leading-display);
letter-spacing: var(--track-display);
text-wrap: balance;
}
.hero__foil {
background: var(--foil);
background-size: 300% 100%;
background-position: 100% 0;
-webkit-background-clip: text;
background-clip: text;
color: transparent;
animation: hero-foil 6s var(--ease) infinite;
}
@keyframes hero-foil {
0%, 15% { background-position: 100% 0; }
70%, 100% { background-position: 0% 0; }
}
.hero__lead {
max-width: var(--measure);
margin: 0;
font-size: var(--text-l);
text-wrap: balance;
}
.hero__button {
display: inline-flex;
align-items: center;
min-height: var(--tap);
margin-top: var(--space-s);
padding: 0 22px;
border-radius: var(--radius-pill);
background: var(--button);
color: var(--on-button);
font-size: var(--text-m);
text-decoration: none;
transition: transform var(--mid) var(--ease), background-color var(--mid) var(--ease-plain);
}
.hero__button:hover { transform: translateY(-2px); background: #fff; }
.hero__button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.hero__proof {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 10px;
margin: var(--space-l) 0 0;
font-size: var(--text-s);
}
.hero__stars { color: var(--accent); letter-spacing: 2px; }
.hero__row {
display: grid;
grid-template-columns: 2fr 1fr 1fr;
gap: var(--gap);
text-align: left;
}
.hero__tile {
position: relative;
margin: 0;
aspect-ratio: 1;
overflow: hidden;
border-radius: var(--radius-tile);
background: var(--tile);
}
.hero__tile--wide { aspect-ratio: auto; background: var(--void); }
.hero__tile--frost { background: var(--tint-frost); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__img {
width: 100%;
height: 100%;
object-fit: cover;
mix-blend-mode: multiply;
filter: contrast(1.15) saturate(1.2);
transition: transform var(--slow) var(--ease);
}
.hero__tile:hover .hero__img,
.hero__tile:hover .hero__blob { transform: scale(1.05); }
.hero__tile--shader { background: linear-gradient(160deg, #3a1a6b, var(--tint-violet)); }
.hero__blob {
position: absolute;
inset: 12%;
border-radius: 50%;
background: radial-gradient(circle at 40% 40%, #ffd1a6 0%, var(--tint-pink) 35%, #e2265a 60%, transparent 72%);
filter: blur(6px);
animation: hero-breathe 7s ease-in-out infinite alternate;
transition: transform var(--slow) var(--ease);
}
@keyframes hero-breathe {
from { border-radius: 50% 46% 52% 48%; translate: -3% 2%; }
to { border-radius: 44% 54% 46% 56%; translate: 3% -2%; }
}
.hero__caption {
position: absolute;
left: var(--space-m);
bottom: 12px;
color: var(--ink);
font-size: var(--text-s);
text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.hero__kind { margin-left: 4px; color: rgba(243, 238, 231, 0.6); }
.hero__rise {
opacity: 0;
filter: blur(12px);
translate: 0 24px;
animation: hero-rise var(--rise) var(--ease) forwards;
}
.hero__copy > .hero__rise:nth-child(2) { animation-delay: 120ms; }
.hero__copy > .hero__rise:nth-child(3) { animation-delay: 240ms; }
.hero__copy > .hero__rise:nth-child(4) { animation-delay: 360ms; }
.hero__row.hero__rise { animation-delay: 480ms; }
@keyframes hero-rise {
to { opacity: 1; filter: blur(0); translate: 0 0; }
}
@media (max-width: 760px) {
.hero__row { grid-template-columns: 1fr 1fr; }
.hero__tile--wide { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) {
.hero__rise { opacity: 1; filter: none; translate: none; animation: none; }
.hero__foil, .hero__blob { animation: none; }
}
</style>
<script>
(() => {
const still = matchMedia('(prefers-reduced-motion: reduce)');
const COUNT = 2600;
function paint(context, width, height, seconds, seeds) {
context.globalCompositeOperation = 'source-over';
context.fillStyle = 'rgba(0, 0, 0, 0.35)';
context.fillRect(0, 0, width, height);
context.globalCompositeOperation = 'lighter';
const cx = width / 2;
const cy = height / 2;
const span = width * 0.36;
for (let i = 0; i < COUNT; i += 1) {
const s = seeds[i];
const t = s.u * Math.PI * 2 + seconds * 0.35;
// A figure-eight path, thickened by each particle's own offset.
const band = s.dx * s.dx * Math.sign(s.dx);
const x = cx + Math.sin(t) * span * (1 + band * 0.12) + s.dy * 6;
const y = cy + Math.sin(t * 2) * height * 0.22 * (1 + band * 0.35) + Math.cos(t + seconds * 0.2) * 10 + s.dy * 4;
const warm = (Math.sin(t) + 1) / 2;
context.fillStyle = warm > 0.5
? `rgba(255, ${120 + warm * 60 | 0}, 60, ${0.25 + s.a * 0.5})`
: `rgba(110, ${170 + warm * 80 | 0}, 255, ${0.25 + s.a * 0.5})`;
context.fillRect(x, y, s.r, s.r);
}
}
function run(canvas) {
const context = canvas.getContext('2d');
const seeds = Array.from({ length: COUNT }, () => ({
u: Math.random(), dx: (Math.random() - 0.5) * 2, dy: (Math.random() - 0.5) * 2,
a: Math.random(), r: Math.random() < 0.85 ? 1.2 : 2.2,
}));
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, seeds);
};
const tick = (now) => {
paint(context, canvas.clientWidth, canvas.clientHeight, now / 1000, seeds);
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('.hero__canvas').forEach(run);
})();
</script>