Zoom roadmap
A vertical progress line that fills as you scroll, lighting Meridian’s 2027 stations one by one; each arrives from a small, blurred offset with a zoom to full size, and the last station is the CTA card itself — the invitation lands right where the journey ends.
Real scenarios
The component as it is used in a product — not a specimen grid.
The line drinks the scroll and the stations wake in order — each card zooms out of a soft blur the moment its gate opens, and the fourth station is not a milestone but the door: your workspace, two minutes, no card.
Meridian — 2027 roadmap
0% shippedFree tier, two minutes, no card — the roadmap ends at your first release.
Workspace “aurora-42” is ready — first pipeline preloaded.
Important props
| Prop | Type | Default | What it does |
|---|---|---|---|
| stage | length | '300vh' | The stage height; the roadmap board stays sticky through all of it. |
| fill | % | '--zrm-p × 100%' | The progress line’s fill height; the same single progress variable, no second measurement. |
| zoom-in | transform | 'scale .74 → 1' | Each station settles by growing from 74% while a 6px blur dissolves. |
| thresholds | progress | '−.09 · .29 · .57 · .86' | Where each station lights; the first is lit from the very start, the CTA slightly before the end. |
| cta | station | 'last' | The last station is the invitation card with a live Alpine button — not just a label. |
Snippet
{{-- Zoom roadmap: the line fills, the stations zoom in --}}
<div class="zrm" x-data="{
p: 0,
stop: () => {},
init() {
const root = this.$root, stage = root.querySelector('.zrm-stage'),
stops = [...root.querySelectorAll('.zrm-stop')];
const gate = (i) => i === 0 ? -0.09 : (i / (stops.length - 1)) * 0.86;
let frame = 0, last = -1;
const measure = () => {
frame = 0;
const r = stage.getBoundingClientRect();
const span = Math.max(r.height - window.innerHeight, 1);
const p = Math.min(1, Math.max(0, -r.top / span));
stops.forEach((stop, i) => {
const on = Math.min(1, Math.max(0, (p - gate(i)) / 0.09));
stop.style.setProperty('--zrm-on', on.toFixed(3));
});
const v = Math.round(p * 1000) / 1000;
if (v !== last) { last = v; this.p = v; root.style.setProperty('--zrm-p', v); }
};
const schedule = () => { if (!frame) frame = requestAnimationFrame(measure); };
addEventListener('scroll', schedule, { passive: true });
addEventListener('resize', schedule, { passive: true });
this.stop = () => {
cancelAnimationFrame(frame);
removeEventListener('scroll', schedule);
removeEventListener('resize', schedule);
};
measure();
},
destroy() { this.stop(); },
}">
<div class="zrm-stage">
<div class="zrm-board">
<span class="zrm-line" aria-hidden="true"><span class="zrm-fill"></span></span>
<div class="zrm-stop">
<span class="zrm-node" aria-hidden="true"></span>
<article class="zrm-card"><b>Flags engine v2</b><small>Dublin · shipped</small></article>
</div>
<div class="zrm-stop">
<span class="zrm-node" aria-hidden="true"></span>
<article class="zrm-card"><b>Edge agents, 24 regions</b><small>Singapore · building</small></article>
</div>
<div class="zrm-stop">
<span class="zrm-node" aria-hidden="true"></span>
<article class="zrm-card"><b>Smart rollout guard</b><small>Seoul · in design</small></article>
</div>
<div class="zrm-stop">
<span class="zrm-node" aria-hidden="true"></span>
<article class="zrm-card zrm-cta"><b>Start free</b>
<button type="button">Roll out now</button></article>
</div>
</div>
</div>
</div>
<style>
.zrm-stage { block-size: 300vh; }
.zrm-board { position: sticky; inset-block-start: 10vh; display: grid; gap: 1.25rem; }
.zrm-line { position: absolute; inset-block: 1rem; inset-inline-start: 1.06rem;
inline-size: 3px; border-radius: 999px; background: #e4e4ef; }
.zrm-fill { --zrm-p: 0; display: block; block-size: calc(var(--zrm-p) * 100%);
border-radius: 999px; background: #5647e6; }
.zrm-stop { --zrm-on: 0; position: relative; padding-inline-start: 2.75rem; }
.zrm-node { position: absolute; inset-block-start: .4rem; inset-inline-start: .55rem;
inline-size: .55rem; aspect-ratio: 1; border-radius: 50%; background: #c9c9dd; scale: var(--zrm-on); }
.zrm-card { scale: calc(.74 + .26 * var(--zrm-on)); opacity: var(--zrm-on);
filter: blur(calc((1 - var(--zrm-on)) * 6px)); }
</style>
// app/Pages/Roadmap.jsx — Inertia (React) page; renders the React
// snippet below unchanged, with Inertia's Link wired into the provider.
import { Link } from '@inertiajs/react';
import { NabuXUIProvider } from '@nabuxai/ui-react';
import Roadmap2027 from '@/components/Roadmap2027';
export default function Roadmap() {
return (
<NabuXUIProvider locale="en" linkComponent={Link}>
<main className="nx-page">
<Roadmap2027 />
</main>
</NabuXUIProvider>
);
}
// Roadmap2027.jsx — the line fills, the stations zoom in
import { useEffect, useRef, useState } from 'react';
import '@nabuxai/ui-core/css';
const STOPS = [
{ id: 'flags', title: 'Flags engine v2', meta: 'Dublin · shipped' },
{ id: 'edge', title: 'Edge agents, 24 regions', meta: 'Singapore · building' },
{ id: 'guard', title: 'Smart rollout guard', meta: 'Seoul · in design' },
];
export default function Roadmap2027() {
const rootRef = useRef(null);
const [pct, setPct] = useState(0);
// One scroll pass: stage progress fills the line; each stop's own
// gate decides when it zooms in. Cleaned up on unmount.
useEffect(() => {
const root = rootRef.current;
const stage = root.querySelector('.zrm-stage');
const stops = [...root.querySelectorAll('.zrm-stop')];
const gate = (i) => (i === 0 ? -0.09 : (i / (stops.length - 1)) * 0.86);
let frame = 0;
const measure = () => {
frame = 0;
const r = stage.getBoundingClientRect();
const span = Math.max(r.height - window.innerHeight, 1);
const p = Math.min(1, Math.max(0, -r.top / span));
root.style.setProperty('--zrm-p', p.toFixed(3));
setPct(Math.round(p * 100));
stops.forEach((stop, i) => {
const on = Math.min(1, Math.max(0, (p - gate(i)) / 0.09));
stop.style.setProperty('--zrm-on', on.toFixed(3));
});
};
const schedule = () => { if (!frame) frame = requestAnimationFrame(measure); };
window.addEventListener('scroll', schedule, { passive: true });
window.addEventListener('resize', schedule, { passive: true });
measure();
return () => {
cancelAnimationFrame(frame);
window.removeEventListener('scroll', schedule);
window.removeEventListener('resize', schedule);
};
}, []);
return (
<div className="zrm" ref={rootRef}>
<style>{`
.zrm-stage { block-size: 300vh; }
.zrm-board { position: sticky; inset-block-start: 10vh; display: grid; gap: 1.25rem;
max-inline-size: 34rem; }
.zrm-line { position: absolute; inset-block: 1rem; inset-inline-start: 1.06rem; inline-size: 3px;
border-radius: 999px; background: #e4e4ef; }
.zrm-fill { display: block; block-size: calc(var(--zrm-p, 0) * 100%);
border-radius: 999px; background: #5647e6; }
.zrm-stop { --zrm-on: 0; position: relative; padding-inline-start: 2.75rem; }
.zrm-node { position: absolute; inset-block-start: .4rem; inset-inline-start: .55rem; inline-size: .55rem;
aspect-ratio: 1; border-radius: 50%; background: #c9c9dd; scale: var(--zrm-on); }
.zrm-stop[style*='--zrm-on: 1'] .zrm-node { background: #2f9e6e; }
.zrm-card { padding: 1rem 1.25rem; border-radius: 1.25rem; background: #fff;
border: 1px solid #e4e4ef; scale: calc(.74 + .26 * var(--zrm-on, 0));
opacity: var(--zrm-on, 0); filter: blur(calc((1 - var(--zrm-on, 0)) * 6px)); }
.zrm-cta { background: #5647e6; color: #fff; border-color: transparent; }
`}</style>
<div className="zrm-stage">
<div className="zrm-board">
<span className="zrm-line" aria-hidden="true"><span className="zrm-fill" /></span>
{STOPS.map((stop) => (
<div className="zrm-stop" key={stop.id}>
<span className="zrm-node" aria-hidden="true" />
<article className="zrm-card"><b>{stop.title}</b><small>{stop.meta}</small></article>
</div>
))}
<div className="zrm-stop">
<span className="zrm-node" aria-hidden="true" />
<article className="zrm-card zrm-cta">
<b>Start free</b>
<button type="button">Roll out now — {pct}% of the road behind you</button>
</article>
</div>
</div>
</div>
</div>
);
}
<!-- Roadmap2027.vue — the line fills, the stations zoom in -->
<script setup lang="ts">
import { onBeforeUnmount, onMounted, ref } from 'vue';
import '@nabuxai/ui-core/css';
const stops = [
{ id: 'flags', title: 'Flags engine v2', meta: 'Dublin · shipped' },
{ id: 'edge', title: 'Edge agents, 24 regions', meta: 'Singapore · building' },
{ id: 'guard', title: 'Smart rollout guard', meta: 'Seoul · in design' },
];
const root = ref<HTMLElement | null>(null);
const pct = ref(0);
// One scroll pass: stage progress fills the line; each stop's own gate
// decides when it zooms in. Cleaned up on unmount.
let frame = 0;
const measure = () => {
frame = 0;
const el = root.value;
if (!el) return;
const stage = el.querySelector('.zrm-stage') as HTMLElement;
const nodes = [...el.querySelectorAll('.zrm-stop')] as HTMLElement[];
const gate = (i: number) => (i === 0 ? -0.09 : (i / (nodes.length - 1)) * 0.86);
const r = stage.getBoundingClientRect();
const span = Math.max(r.height - window.innerHeight, 1);
const p = Math.min(1, Math.max(0, -r.top / span));
el.style.setProperty('--zrm-p', p.toFixed(3));
pct.value = Math.round(p * 100);
nodes.forEach((stop, i) => {
const on = Math.min(1, Math.max(0, (p - gate(i)) / 0.09));
stop.style.setProperty('--zrm-on', on.toFixed(3));
});
};
const schedule = () => { if (!frame) frame = requestAnimationFrame(measure); };
onMounted(() => {
window.addEventListener('scroll', schedule, { passive: true });
window.addEventListener('resize', schedule, { passive: true });
measure();
});
onBeforeUnmount(() => {
cancelAnimationFrame(frame);
window.removeEventListener('scroll', schedule);
window.removeEventListener('resize', schedule);
});
</script>
<template>
<div ref="root" class="zrm">
<div class="zrm-stage">
<div class="zrm-board">
<span class="zrm-line" aria-hidden="true"><span class="zrm-fill"></span></span>
<div v-for="stop in stops" :key="stop.id" class="zrm-stop">
<span class="zrm-node" aria-hidden="true"></span>
<article class="zrm-card"><b>{{ stop.title }}</b><small>{{ stop.meta }}</small></article>
</div>
<div class="zrm-stop">
<span class="zrm-node" aria-hidden="true"></span>
<article class="zrm-card zrm-cta">
<b>Start free</b>
<button type="button">Roll out now — {{ pct }}% of the road behind you</button>
</article>
</div>
</div>
</div>
</div>
</template>
<style scoped>
.zrm-stage { block-size: 300vh; }
.zrm-board { position: sticky; inset-block-start: 10vh; display: grid; gap: 1.25rem; max-inline-size: 34rem; }
.zrm-line { position: absolute; inset-block: 1rem; inset-inline-start: 1.06rem; inline-size: 3px;
border-radius: 999px; background: #e4e4ef; }
.zrm-fill { display: block; block-size: calc(var(--zrm-p, 0) * 100%); border-radius: 999px; background: #5647e6; }
.zrm-stop { --zrm-on: 0; position: relative; padding-inline-start: 2.75rem; }
.zrm-node { position: absolute; inset-block-start: .4rem; inset-inline-start: .55rem; inline-size: .55rem;
aspect-ratio: 1; border-radius: 50%; background: #c9c9dd; scale: var(--zrm-on); }
.zrm-card { padding: 1rem 1.25rem; border-radius: 1.25rem; background: #fff; border: 1px solid #e4e4ef;
scale: calc(.74 + .26 * var(--zrm-on, 0)); opacity: var(--zrm-on, 0);
filter: blur(calc((1 - var(--zrm-on, 0)) * 6px)); }
.zrm-cta { background: #5647e6; color: #fff; border-color: transparent; }
</style>
<!-- Roadmap2027.svelte — the line fills, the stations zoom in -->
<script lang="ts">
import '@nabuxai/ui-core/css';
const stops = [
{ id: 'flags', title: 'Flags engine v2', meta: 'Dublin · shipped' },
{ id: 'edge', title: 'Edge agents, 24 regions', meta: 'Singapore · building' },
{ id: 'guard', title: 'Smart rollout guard', meta: 'Seoul · in design' },
];
let root: HTMLElement;
let pct = $state(0);
// One scroll pass: stage progress fills the line; each stop's own
// gate decides when it zooms in. $effect cleans up.
$effect(() => {
let frame = 0;
const measure = () => {
frame = 0;
const stage = root.querySelector('.zrm-stage') as HTMLElement;
const nodes = [...root.querySelectorAll('.zrm-stop')] as HTMLElement[];
const gate = (i: number) => (i === 0 ? -0.09 : (i / (nodes.length - 1)) * 0.86);
const r = stage.getBoundingClientRect();
const span = Math.max(r.height - window.innerHeight, 1);
const p = Math.min(1, Math.max(0, -r.top / span));
root.style.setProperty('--zrm-p', p.toFixed(3));
pct = Math.round(p * 100);
nodes.forEach((stop, i) => {
const on = Math.min(1, Math.max(0, (p - gate(i)) / 0.09));
stop.style.setProperty('--zrm-on', on.toFixed(3));
});
};
const schedule = () => { if (!frame) frame = requestAnimationFrame(measure); };
window.addEventListener('scroll', schedule, { passive: true });
window.addEventListener('resize', schedule, { passive: true });
measure();
return () => {
cancelAnimationFrame(frame);
window.removeEventListener('scroll', schedule);
window.removeEventListener('resize', schedule);
};
});
</script>
<div bind:this={root} class="zrm">
<div class="zrm-stage">
<div class="zrm-board">
<span class="zrm-line" aria-hidden="true"><span class="zrm-fill"></span></span>
{#each stops as stop (stop.id)}
<div class="zrm-stop">
<span class="zrm-node" aria-hidden="true"></span>
<article class="zrm-card"><b>{stop.title}</b><small>{stop.meta}</small></article>
</div>
{/each}
<div class="zrm-stop">
<span class="zrm-node" aria-hidden="true"></span>
<article class="zrm-card zrm-cta">
<b>Start free</b>
<button type="button">Roll out now — {pct}% of the road behind you</button>
</article>
</div>
</div>
</div>
</div>
<style>
.zrm-stage { block-size: 300vh; }
.zrm-board { position: sticky; inset-block-start: 10vh; display: grid; gap: 1.25rem; max-inline-size: 34rem; }
.zrm-line { position: absolute; inset-block: 1rem; inset-inline-start: 1.06rem; inline-size: 3px;
border-radius: 999px; background: #e4e4ef; }
.zrm-fill { display: block; block-size: calc(var(--zrm-p, 0) * 100%); border-radius: 999px; background: #5647e6; }
.zrm-stop { --zrm-on: 0; position: relative; padding-inline-start: 2.75rem; }
.zrm-node { position: absolute; inset-block-start: .4rem; inset-inline-start: .55rem; inline-size: .55rem;
aspect-ratio: 1; border-radius: 50%; background: #c9c9dd; scale: var(--zrm-on); }
.zrm-card { padding: 1rem 1.25rem; border-radius: 1.25rem; background: #fff; border: 1px solid #e4e4ef;
scale: calc(.74 + .26 * var(--zrm-on, 0)); opacity: var(--zrm-on, 0);
filter: blur(calc((1 - var(--zrm-on, 0)) * 6px)); }
.zrm-cta { background: #5647e6; color: #fff; border-color: transparent; }
</style>