Files
hyperframes/registry/components/success-check/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

118 lines
3.2 KiB
HTML
Vendored

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=1920, height=1080" />
<title>Success Check - 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: #f7f7f8;
font-family: Inter, system-ui, sans-serif;
}
.demo-frame {
display: grid;
place-items: center;
min-width: 760px;
min-height: 480px;
padding: 56px;
}
.hf-transition-success-check {
display: grid;
place-items: center;
/* ponytail: sized up from 82px to fill ~55% of frame height at 1080p */
width: 340px;
height: 340px;
border-radius: 999px;
background: #dcfce7;
color: #16a34a;
box-shadow:
0 24px 80px rgba(22, 163, 74, 0.18),
0 4px 16px rgba(22, 163, 74, 0.1);
}
.hf-transition-success-check svg {
width: 220px;
height: 220px;
fill: none;
stroke: currentColor;
stroke-width: 3.5;
stroke-linecap: round;
stroke-linejoin: round;
filter: blur(var(--hf-check-blur, 0px));
transform: rotate(var(--hf-check-rotate, 0deg)) scale(var(--hf-check-scale, 1));
}
.hf-transition-success-check circle {
opacity: 0.28;
}
.hf-transition-success-check path {
stroke-dasharray: 36;
stroke-dashoffset: var(--hf-check-dash, 0);
}
</style>
</head>
<body>
<div
id="demo"
data-composition-id="success-check-demo"
data-start="0"
data-width="1920"
data-height="1080"
data-duration="5"
>
<div class="demo-frame">
<div class="hf-transition-success-check" aria-label="Success">
<svg viewBox="0 0 64 64">
<circle cx="32" cy="32" r="27" />
<path d="M20 33.5l8 8L45 23" />
</svg>
</div>
</div>
<script>
const tl = gsap.timeline({ paused: true });
const startTime = 0.5;
tl.fromTo(
".hf-transition-success-check svg",
{
opacity: 0,
"--hf-check-scale": 0.72,
"--hf-check-rotate": "-18deg",
"--hf-check-blur": "7px",
},
{
opacity: 1,
"--hf-check-scale": 1,
"--hf-check-rotate": "0deg",
"--hf-check-blur": "0px",
duration: 0.34,
ease: "back.out(1.8)",
},
startTime,
);
tl.fromTo(
".hf-transition-success-check path",
{ "--hf-check-dash": 36 },
{ "--hf-check-dash": 0, duration: 0.42, ease: "power2.out" },
startTime + 0.12,
);
tl.set({}, {}, 5);
window.__timelines = window.__timelines || {};
window.__timelines["success-check-demo"] = tl;
</script>
</div>
</body>
</html>