mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-04 07:19:52 +00:00
74 lines
1.7 KiB
HTML
Vendored
74 lines
1.7 KiB
HTML
Vendored
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=1920, height=1080" />
|
|
<title>Camcorder HUD - 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,
|
|
#camcorder-hud-demo {
|
|
width: 1920px;
|
|
height: 1080px;
|
|
margin: 0;
|
|
overflow: hidden;
|
|
background: #050505;
|
|
}
|
|
|
|
#ch-demo-backdrop,
|
|
#ch-demo-overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
#ch-demo-backdrop {
|
|
object-fit: cover;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div
|
|
id="camcorder-hud-demo"
|
|
data-composition-id="camcorder-hud-demo"
|
|
data-start="0"
|
|
data-duration="4"
|
|
data-width="1920"
|
|
data-height="1080"
|
|
>
|
|
<img
|
|
id="ch-demo-backdrop"
|
|
class="clip"
|
|
src="demo-backdrop.jpg"
|
|
data-start="0"
|
|
data-duration="4"
|
|
data-track-index="0"
|
|
alt="Creator recording a video"
|
|
/>
|
|
<div
|
|
id="ch-demo-overlay"
|
|
data-composition-id="camcorder-hud"
|
|
data-composition-src="camcorder-hud.html"
|
|
data-start="0"
|
|
data-duration="4"
|
|
data-track-index="1"
|
|
data-width="1920"
|
|
data-height="1080"
|
|
></div>
|
|
</div>
|
|
|
|
<script>
|
|
const tl = gsap.timeline({ paused: true });
|
|
tl.to("#ch-demo-backdrop", { scale: 1.02, duration: 4, ease: "none" }, 0);
|
|
window.__timelines = window.__timelines || {};
|
|
window.__timelines["camcorder-hud-demo"] = tl;
|
|
</script>
|
|
</body>
|
|
</html>
|