Files
hyperframes/registry/components/bottom-up-letters/demo.html
T
Miguel Ángel 9734578e60 feat(registry): bring back the video-primitive moves (#3169)
Restores the 208 catalog items reverted after their previews 404'd in
production, this time on the payload mechanism rather than the .html files
that caused the outage.

The generator no longer writes a preview document to docs/public. That writer,
and the machinery under it, existed only to produce files the docs host
discards, so it is gone rather than bypassed. Items now embed the composition
itself via a payload, which is what the previous change already does for the
items that were already in the catalog.

The variables explorer is parked, not restored: it drove its preview through
the same unpublished .html path, so it would have shown an empty frame. Items
that declare variables get the live player plus the static variables table, and
reconnecting the explorer to payloads is a follow-up.
2026-08-10 18:46:03 -04:00

75 lines
2.1 KiB
HTML
Vendored

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=1920, height=1080" />
<title>Bottom Up Letters - Demo</title>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.14.2/dist/gsap.min.js"></script>
<style>
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
width: 1920px;
height: 1080px;
overflow: hidden;
}
#demo {
width: 1920px;
height: 1080px;
display: grid;
place-items: center;
background: #16120e;
color: #f7ead6;
font-family: Inter, system-ui, sans-serif;
}
.hf-bottom-up-letters {
display: inline-block;
font-size: 180px; /* ponytail: scaled up from 126px — fills ~65% of 1920px frame width */
line-height: 1;
font-weight: 900;
letter-spacing: -0.02em;
}
.hf-bottom-up-letters-char {
display: inline-block;
opacity: 0;
transform: translate3d(0, 0.85em, 0);
will-change: transform, opacity;
}
</style>
</head>
<body>
<div
id="demo"
data-composition-id="bottom-up-letters-demo"
data-width="1920"
data-height="1080"
data-duration="4"
>
<div class="hf-bottom-up-letters">Build with motion</div>
<script>
document.querySelectorAll(".hf-bottom-up-letters").forEach((el) => {
const text = el.textContent || "";
el.textContent = "";
for (const char of text) {
const span = document.createElement("span");
span.className = "hf-bottom-up-letters-char";
span.textContent = char === " " ? "\u00a0" : char;
el.appendChild(span);
}
});
const tl = gsap.timeline({ paused: true });
tl.to(
".hf-bottom-up-letters-char",
{ opacity: 1, y: 0, duration: 0.48, ease: "back.out(1.7)", stagger: 0.025 },
0.45,
);
window.__timelines = window.__timelines || {};
window.__timelines["bottom-up-letters-demo"] = tl;
</script>
</div>
</body>
</html>