mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-13 07:40:06 +00:00
Replace bgm-to-video, bgm-to-video-new, bgm-to-video-refactor, and the standalone beat-sync/montage skills with a single music-to-video skill. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
118 lines
3.0 KiB
HTML
118 lines
3.0 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=1920, height=1080" />
|
|
<title>21 · outline_to_fill</title>
|
|
<script src="../assets/gsap.min.js"></script>
|
|
<style>
|
|
:root {
|
|
--hg-violet: #7c3aed;
|
|
--hg-violet-2: #a855f7;
|
|
--hg-bg: #0a0a0f;
|
|
--hg-fg: #f5f5fa;
|
|
--hg-dim: #6b6b78;
|
|
}
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
width: 1920px;
|
|
height: 1080px;
|
|
overflow: hidden;
|
|
background: var(--hg-bg);
|
|
font-family: "Inter", system-ui, sans-serif;
|
|
color: var(--hg-fg);
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
#scene {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 1920px;
|
|
height: 1080px;
|
|
}
|
|
.stage {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.outline-stack {
|
|
position: relative;
|
|
font-family: "Playfair Display", serif;
|
|
font-weight: 900;
|
|
font-size: 320px;
|
|
letter-spacing: -0.04em;
|
|
line-height: 0.95;
|
|
white-space: nowrap;
|
|
}
|
|
.stroke-layer {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
color: transparent;
|
|
-webkit-text-stroke: 3px var(--hg-violet-2);
|
|
text-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
|
|
will-change:
|
|
opacity,
|
|
-webkit-text-stroke;
|
|
}
|
|
.fill-layer {
|
|
position: relative;
|
|
color: var(--hg-fg);
|
|
clip-path: inset(100% 0 0 0);
|
|
will-change: clip-path;
|
|
}
|
|
.spacer {
|
|
color: transparent;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div
|
|
id="root"
|
|
data-composition-id="main"
|
|
data-start="0"
|
|
data-duration="2"
|
|
data-width="1920"
|
|
data-height="1080"
|
|
>
|
|
<div id="scene" class="clip" data-start="0" data-duration="2" data-track-index="1">
|
|
<div class="stage">
|
|
<div class="outline-stack">
|
|
<span class="spacer">Premium</span>
|
|
<span class="stroke-layer">Premium</span>
|
|
<span class="fill-layer">Premium</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
window.__timelines = window.__timelines || {};
|
|
const tl = gsap.timeline({ paused: true });
|
|
|
|
// Stroke draws in
|
|
tl.fromTo(
|
|
".stroke-layer",
|
|
{ opacity: 0, scale: 1.04 },
|
|
{ opacity: 1, scale: 1, duration: 0.45, ease: "power3.out" },
|
|
0.15,
|
|
);
|
|
|
|
// Fill rises from bottom
|
|
tl.set(".fill-layer", { clipPath: "inset(100% 0 0 0)" }, 0);
|
|
tl.to(".fill-layer", { clipPath: "inset(0% 0 0 0)", duration: 1.0, ease: "expo.out" }, 0.55);
|
|
|
|
// Stroke recedes once fill arrives
|
|
tl.to(".stroke-layer", { opacity: 0.35, duration: 0.6, ease: "power2.out" }, 1.0);
|
|
|
|
window.__timelines["main"] = tl;
|
|
</script>
|
|
</body>
|
|
</html>
|