Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(nav): make the site header actually stick instead of scrolling away

nirholasa6c29b7f0bc9
diff --git a/data/changelog.json b/data/changelog.json
index 8dc874107..2cdfe6c6f 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,15 @@
{
"$comment": "Curated changelog entries for three.ws, the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-09-05",
+ "title": "The site header now stays put when you scroll",
+ "summary": "The navigation bar was set to stick to the top of the window but never actually did: it scrolled away with the page on every route, at every screen size, so reaching the menu meant scrolling all the way back up. The bar was mounted inside a wrapper exactly its own height, and a sticky element can only travel inside its parent, so it had nowhere to go. The header now stays on screen wherever you scroll, on phones and desktop alike.",
+ "tags": [
+ "fix",
+ "improvement"
+ ]
+ },
{
"date": "2026-09-05",
"title": "3D models now open, animate and report on themselves inside VS Code",
diff --git a/public/nav.css b/public/nav.css
index a98bff7c8..d39ef822b 100644
--- a/public/nav.css
+++ b/public/nav.css
@@ -35,6 +35,18 @@
.nav *, .nav-drawer * { box-sizing: border-box; }
/* ── NAV ─────────────────────────────────────────────────────── */
+/* A sticky element travels only within its own parent's box. The header mounts
+ inside #nav-container (nav.js), a wrapper that is exactly as tall as the
+ header itself, so `position: sticky` on .nav had zero room to travel and the
+ bar scrolled away with the document on every page, at every width. The
+ wrapper is the child whose parent is the full-length page, so it is the one
+ that has to carry the sticky. It cannot be display:contents instead:
+ marketplace-v2.css needs #nav-container to stay a grid item so the header
+ spans both columns. :not(:empty) leaves the pre-hydration min-height reserve
+ in tokens.css on a plain static box, where it belongs. */
+#nav-container:not(:empty) {
+ position: sticky; top: 0; z-index: 100;
+}
.nav {
position: sticky; top: 0; z-index: 100;
border-bottom: 1px solid var(--nv-hairline);