diff --git a/docs/catalog/blocks/code-3d-extrude.mdx b/docs/catalog/blocks/code-3d-extrude.mdx index ae3cce1ae8..255deb5a94 100644 --- a/docs/catalog/blocks/code-3d-extrude.mdx +++ b/docs/catalog/blocks/code-3d-extrude.mdx @@ -599,7 +599,6 @@ That writes one file: `compositions/code-3d-extrude.html`. var H = 1080; window.__timelines = window.__timelines || {}; var tl = gsap.timeline({ paused: true }); - window.__timelines[spec.id] = tl; // register synchronously var THREE = window.THREE; var renderer = new THREE.WebGLRenderer({ @@ -627,6 +626,10 @@ That writes one file: `compositions/code-3d-extrude.html`. window.addEventListener("beforeunload", function () { disposeGL(renderer, scene); }); + window.__timelines[spec.id] = tl; // register AFTER setup completes + if (typeof window.__hfForceTimelineRebind === "function") { + window.__hfForceTimelineRebind(); // re-nest now that we are populated + } }); } diff --git a/docs/catalog/blocks/code-particle-assemble.mdx b/docs/catalog/blocks/code-particle-assemble.mdx index 05f5ed7ca8..781848f781 100644 --- a/docs/catalog/blocks/code-particle-assemble.mdx +++ b/docs/catalog/blocks/code-particle-assemble.mdx @@ -465,7 +465,6 @@ That writes one file: `compositions/code-particle-assemble.html`. var H = 1080; window.__timelines = window.__timelines || {}; var tl = gsap.timeline({ paused: true }); - window.__timelines[spec.id] = tl; // register synchronously var THREE = window.THREE; var renderer = new THREE.WebGLRenderer({ @@ -493,6 +492,10 @@ That writes one file: `compositions/code-particle-assemble.html`. window.addEventListener("beforeunload", function () { disposeGL(renderer, scene); }); + window.__timelines[spec.id] = tl; // register AFTER setup completes + if (typeof window.__hfForceTimelineRebind === "function") { + window.__hfForceTimelineRebind(); // re-nest now that we are populated + } }); } diff --git a/docs/catalog/blocks/code-shader-dissolve.mdx b/docs/catalog/blocks/code-shader-dissolve.mdx index bcaca2f626..6091b8876e 100644 --- a/docs/catalog/blocks/code-shader-dissolve.mdx +++ b/docs/catalog/blocks/code-shader-dissolve.mdx @@ -521,7 +521,6 @@ That writes one file: `compositions/code-shader-dissolve.html`. var H = 1080; window.__timelines = window.__timelines || {}; var tl = gsap.timeline({ paused: true }); - window.__timelines[spec.id] = tl; // register synchronously var THREE = window.THREE; var renderer = new THREE.WebGLRenderer({ @@ -549,6 +548,10 @@ That writes one file: `compositions/code-shader-dissolve.html`. window.addEventListener("beforeunload", function () { disposeGL(renderer, scene); }); + window.__timelines[spec.id] = tl; // register AFTER setup completes + if (typeof window.__hfForceTimelineRebind === "function") { + window.__hfForceTimelineRebind(); // re-nest now that we are populated + } }); } diff --git a/docs/catalog/blocks/code-snippet-dark-2026.mdx b/docs/catalog/blocks/code-snippet-dark-2026.mdx index 15f7bb0d29..22b4d08dcf 100644 --- a/docs/catalog/blocks/code-snippet-dark-2026.mdx +++ b/docs/catalog/blocks/code-snippet-dark-2026.mdx @@ -33,6 +33,7 @@ That writes `compositions/code-snippet-dark-2026.html`, plus 1 supporting file u