Files
hyperframes/examples/remotion-full/index.html
T
Miguel ÁngelandClaude Opus 4.6 44a8752093 fix(ci): add adapter-remotion to Dockerfile.test and format example HTML
The regression Docker build failed because Dockerfile.test was missing
the COPY for packages/adapter-remotion/package.json, causing
`bun install --frozen-lockfile` to detect a lockfile mismatch.
Also fixes oxfmt formatting on examples/remotion-full/index.html.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 21:17:48 +02:00

218 lines
5.7 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Remotion Full Interop Demo</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>
<style>
body,
html {
margin: 0;
padding: 0;
width: 1920px;
height: 1080px;
overflow: hidden;
background: #0f0f1a;
}
</style>
</head>
<body>
<div
id="main-canvas"
data-composition-id="remotion-full"
data-width="1920"
data-height="1080"
data-duration="9"
>
<!-- Track 0: GSAP animated background (native HyperFrames) -->
<div
id="bg-layer"
class="clip"
data-start="0"
data-duration="9"
data-track-index="0"
style="position: absolute; top: 0; left: 0; width: 1920px; height: 1080px"
>
<div
id="bg-inner"
style="
width: 100%;
height: 100%;
background: radial-gradient(ellipse at center, #1a1a3e 0%, #0f0f1a 70%);
"
></div>
<!-- Animated grid lines -->
<svg
id="grid-svg"
width="1920"
height="1080"
style="position: absolute; top: 0; left: 0; opacity: 0.08"
>
<defs>
<pattern id="grid" width="120" height="120" patternUnits="userSpaceOnUse">
<path d="M 120 0 L 0 0 0 120" fill="none" stroke="#8b5cf6" stroke-width="0.5" />
</pattern>
</defs>
<rect width="100%" height="100%" fill="url(#grid)" />
</svg>
</div>
<!-- Track 1: Remotion composition (loaded from bundle) -->
<div
id="remotion-layer"
class="clip"
data-start="0"
data-duration="9"
data-track-index="1"
style="position: absolute; top: 0; left: 0; width: 1920px; height: 1080px"
>
<div id="remotion-root" style="width: 1920px; height: 1080px"></div>
</div>
<!-- Track 2: GSAP animated corner badges (native HyperFrames) -->
<div
id="badges-layer"
class="clip"
data-start="0"
data-duration="9"
data-track-index="2"
style="
position: absolute;
top: 0;
left: 0;
width: 1920px;
height: 1080px;
pointer-events: none;
"
>
<div
id="badge-gsap"
style="
position: absolute;
top: 40px;
left: 40px;
opacity: 0;
padding: 8px 16px;
background: rgba(139, 92, 246, 0.15);
border: 1px solid rgba(139, 92, 246, 0.3);
border-radius: 8px;
"
>
<span style="font-family: monospace; font-size: 14px; color: #a78bfa">GSAP</span>
</div>
<div
id="badge-remotion"
style="
position: absolute;
top: 40px;
right: 40px;
opacity: 0;
padding: 8px 16px;
background: rgba(6, 182, 212, 0.15);
border: 1px solid rgba(6, 182, 212, 0.3);
border-radius: 8px;
"
>
<span style="font-family: monospace; font-size: 14px; color: #67e8f9">REMOTION</span>
</div>
<div
id="badge-hf"
style="
position: absolute;
bottom: 40px;
left: 50%;
transform: translateX(-50%);
opacity: 0;
"
>
<span
style="
font-family: system-ui, sans-serif;
font-size: 16px;
color: rgba(255, 255, 255, 0.3);
letter-spacing: 0.15em;
"
>RENDERED BY HYPERFRAMES</span
>
</div>
</div>
<!-- GSAP timeline for native layers -->
<script>
const tl = gsap.timeline({ paused: true });
// Background grid fade in
tl.fromTo(
"#grid-svg",
{ opacity: 0 },
{ opacity: 0.08, duration: 2, ease: "power2.out" },
0,
);
// Grid subtle drift
tl.to(
"#grid-svg",
{
y: -30,
duration: 9,
ease: "none",
},
0,
);
// Background radial pulse
tl.fromTo(
"#bg-inner",
{ background: "radial-gradient(ellipse at center, #1a1a3e 0%, #0f0f1a 70%)" },
{
background: "radial-gradient(ellipse at center, #1e1e4a 0%, #0f0f1a 70%)",
duration: 4.5,
ease: "power1.inOut",
yoyo: true,
repeat: 1,
},
0,
);
// Badges appear
tl.fromTo(
"#badge-gsap",
{ opacity: 0, x: -20 },
{ opacity: 1, x: 0, duration: 0.6, ease: "power2.out" },
0.5,
);
tl.fromTo(
"#badge-remotion",
{ opacity: 0, x: 20 },
{ opacity: 1, x: 0, duration: 0.6, ease: "power2.out" },
0.7,
);
tl.fromTo(
"#badge-hf",
{ opacity: 0, y: 10 },
{ opacity: 1, y: 0, duration: 0.8, ease: "power2.out" },
1.0,
);
// Badges fade out at the end
tl.to(
["#badge-gsap", "#badge-remotion", "#badge-hf"],
{
opacity: 0,
duration: 0.5,
ease: "power2.in",
},
8.0,
);
window.__timelines = window.__timelines || {};
window.__timelines["remotion-full"] = tl;
</script>
<!-- Load the bundled Remotion composition -->
<script src="dist/bundle.js"></script>
</div>
</body>
</html>