Revert "feat(registry): the video-primitive moves, documented and customisable (#3090)" (#3162)

This reverts commit 3b53bfd2f7.
This commit is contained in:
Miguel Ángel
2026-08-10 14:47:47 -04:00
committed by GitHub
parent 3b53bfd2f7
commit c86d4013f5
2328 changed files with 5906 additions and 458525 deletions
+8 -6
View File
@@ -414,8 +414,10 @@
// 13. Hold
tl.addLabel("hold5", "+=0.2");
// 14. Type correction: "Pythom" → "Python"
const typingStart = tl.labels["hold5"];
// 14. Type correction: "Pythom" → "Python" — positioned relative to the "hold5"
// label. Reading tl.labels back is unavailable under the render compiler's GSAP
// proxy (it throws before the timeline is registered, leaving the block blank),
// so use GSAP's own label-relative position syntax instead.
const words = ["P", "Py", "Pyt", "Pyth", "Pytho", "Python"];
words.forEach((word, i) => {
tl.add(
@@ -423,18 +425,18 @@
if (pythonText)
pythonText.innerHTML = `Start with <span class="text-highlight">${word}</span>`;
},
typingStart + i * 0.05,
`hold5+=${i * 0.05}`,
);
});
const typingEnd = typingStart + words.length * 0.05;
const typingEnd = words.length * 0.05;
tl.add(() => {
if (pythonText) pythonText.innerHTML = "Start with Python";
gsap.set(S + " .squiggle-container", { opacity: 0 });
}, typingEnd);
}, `hold5+=${typingEnd}`);
// 15. Hold
tl.addLabel("hold6", typingEnd + 0.5);
tl.addLabel("hold6", `hold5+=${typingEnd + 0.5}`);
// 16. Cursor clicks away to deselect
tl.to(S + " #cursor", { x: -1050, y: -1520, duration: 0.3, overwrite: "auto" }, "hold6");