Neon Mark Loader
A dark room where a neon ring mark draws itself on over a reflective floor, with a counting floor readout and an Enter pill.
Part of the style
Marble Lift Vitrine
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/marble-lift-vitrine/intro/figma.html?palette=7ef8064dfd89d2ff
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/marble-lift-vitrine/intro/figma.html?palette=7ef8064dfd89d2ff and pass that whole HTML document to the html_to_figma tool, so the part "Neon Mark Loader" 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 {
--stone: #251a1a;
--stone-hi: #150b0b;
--stone-lo: #372c2c;
--ink: #fbf4ee;
--ink-soft: rgba(251, 244, 238, 0.62);
--ink-faint: rgba(251, 244, 238, 0.18);
--night: #fffffe;
--night-2: #fffffe;
--on-dark: #150b0b;
--on-dark-soft: rgba(35, 24, 24, 0.62);
--line-dark: rgba(35, 24, 24, 0.14);
--neon: #87645e;
--petrol: #fbeeec;
--petrol-hi: #8c7d7b;
--neon-soft: rgba(135, 100, 94, 0.28);
--mist: #6e605e;
}
</style>
<section class="intro" aria-label="Opening">
<div class="intro__room">
<div class="intro__floor" aria-hidden="true"></div>
<div class="intro__mark">
<svg class="intro__tube" viewBox="0 0 200 250" role="img" aria-label="Neon lens mark">
<circle class="intro__path" cx="100" cy="96" r="74" pathLength="1"/>
<circle class="intro__path" cx="100" cy="96" r="50" pathLength="1"/>
<path class="intro__path" d="M88 170 V236 H112 V170" pathLength="1"/>
<path class="intro__path" d="M74 96 H126 M100 70 V122" pathLength="1"/>
</svg>
<svg class="intro__tube intro__tube--reflect" viewBox="0 0 200 250" aria-hidden="true">
<circle class="intro__path" cx="100" cy="96" r="74" pathLength="1"/>
<circle class="intro__path" cx="100" cy="96" r="50" pathLength="1"/>
<path class="intro__path" d="M88 170 V236 H112 V170" pathLength="1"/>
<path class="intro__path" d="M74 96 H126 M100 70 V122" pathLength="1"/>
</svg>
</div>
<div class="intro__bar">
<p class="intro__readout"><span class="intro__lamp" aria-hidden="true"></span>Ostra Instrument Hall · <span class="intro__count">0</span>%</p>
<button class="intro__enter" type="button"><span class="intro__dot" aria-hidden="true"></span>Enter the hall</button>
</div>
</div>
</section>
<style>
.intro {
background: var(--night);
color: var(--on-dark);
}
.intro__room {
position: relative;
display: grid;
place-items: center;
min-height: clamp(560px, 62vw, 720px);
padding: var(--space-xl) var(--edge) calc(var(--space-xl) + 72px);
overflow: hidden;
background: radial-gradient(60% 50% at 50% 42%, rgba(22, 72, 82, 0.55), transparent 70%), var(--night);
}
.intro__floor {
position: absolute;
inset: auto -30% 0;
height: 42%;
background:
linear-gradient(to bottom, var(--night), transparent 45%),
repeating-linear-gradient(90deg, var(--line-dark) 0 1px, transparent 1px 80px),
repeating-linear-gradient(0deg, var(--line-dark) 0 1px, transparent 1px 60px);
transform: perspective(420px) rotateX(62deg);
transform-origin: 50% 100%;
opacity: 0.6;
}
.intro__mark {
position: relative;
width: clamp(150px, 24vw, 230px);
}
.intro__tube {
width: 100%;
height: auto;
overflow: visible;
filter: drop-shadow(0 0 3px var(--neon)) drop-shadow(0 0 14px rgba(63, 240, 232, 0.6));
}
.intro__tube--reflect {
position: absolute;
top: 100%;
left: 0;
transform: scaleY(-1);
opacity: 0.16;
filter: blur(3px);
-webkit-mask-image: linear-gradient(to top, #000, transparent 55%);
mask-image: linear-gradient(to top, #000, transparent 55%);
}
.intro__path {
fill: none;
stroke: var(--neon);
stroke-width: 3.2;
stroke-linecap: round;
stroke-linejoin: round;
stroke-dasharray: 1;
stroke-dashoffset: 1;
animation: intro-draw var(--slow) var(--ease-out) forwards, intro-breathe 3.2s var(--ease) 2s infinite;
}
.intro__path:nth-child(2) { animation-delay: 0.2s, 2s; }
.intro__path:nth-child(3) { animation-delay: 0.45s, 2s; }
.intro__path:nth-child(4) { animation-delay: 0.7s, 2s; }
.intro.is-replay .intro__path { animation: none; }
@keyframes intro-draw {
0% { stroke-dashoffset: 1; opacity: 0.2; }
70% { opacity: 1; }
78% { opacity: 0.35; }
84% { opacity: 1; }
100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes intro-breathe {
0%, 100% { stroke-dashoffset: 0; opacity: 1; }
50% { stroke-dashoffset: 0; opacity: 0.72; }
}
.intro__bar {
position: absolute;
inset: auto var(--edge) var(--space-l);
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: var(--space-m);
}
.intro__readout {
display: flex;
align-items: center;
gap: var(--space-s);
margin: 0;
color: var(--on-dark-soft);
font: 500 var(--text-xs)/1 var(--font-label);
letter-spacing: var(--track-label);
text-transform: uppercase;
}
.intro__count {
color: var(--on-dark);
font-variant-numeric: tabular-nums;
}
.intro__lamp,
.intro__dot {
width: 6px;
height: 6px;
border-radius: var(--radius-round);
background: var(--neon);
box-shadow: var(--glow);
}
.intro__enter {
display: inline-flex;
align-items: center;
gap: var(--space-s);
min-height: var(--tap);
padding: 0 22px;
border: var(--rule) solid var(--line-dark);
border-radius: var(--radius-pill);
background: var(--night-2);
color: var(--on-dark);
font: 500 var(--text-xs)/1 var(--font-label);
letter-spacing: var(--track-label);
text-transform: uppercase;
cursor: pointer;
transition: box-shadow var(--lift) var(--ease), background-color var(--lift) var(--ease), transform var(--lift) var(--ease-out);
}
.intro__enter:hover,
.intro__enter:focus-visible {
background: var(--petrol);
box-shadow: 0 0 0 6px var(--neon-soft);
transform: translateY(-2px);
outline: none;
}
@media (prefers-reduced-motion: reduce) {
.intro__path { animation: none; stroke-dashoffset: 0; }
}
</style>
<script>
(() => {
const still = matchMedia('(prefers-reduced-motion: reduce)');
for (const root of document.querySelectorAll('.intro')) {
const count = root.querySelector('.intro__count');
const enter = root.querySelector('.intro__enter');
const run = () => {
if (still.matches) { count.textContent = '100'; return; }
const start = performance.now();
const step = (now) => {
const t = Math.min(1, (now - start) / 2200);
count.textContent = String(Math.round(100 * (1 - Math.pow(1 - t, 3))));
if (t < 1) requestAnimationFrame(step);
};
requestAnimationFrame(step);
};
enter.addEventListener('click', () => {
root.classList.add('is-replay');
void root.offsetWidth;
root.classList.remove('is-replay');
run();
});
run();
}
})();
</script>