Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
649 changes: 649 additions & 0 deletions docs/catalog/components/kinetic-center-build.mdx

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@
"catalog/blocks/hw-path-text",
"catalog/blocks/hw-title",
"catalog/components/inline-highlight",
"catalog/components/kinetic-center-build",
"catalog/components/kinetic-type-swap",
"catalog/components/line-by-line-slide",
"catalog/components/line-swap",
Expand Down
15 changes: 15 additions & 0 deletions docs/public/catalog-index.json
Original file line number Diff line number Diff line change
Expand Up @@ -2260,6 +2260,21 @@
"href": "/catalog/components/keyframe-scrub-stack",
"preview": "https://static.heygen.ai/hyperframes-oss/docs/images/catalog/components/keyframe-scrub-stack.png"
},
{
"name": "kinetic-center-build",
"type": "component",
"title": "Kinetic Center Build",
"description": "Words enter from the right and push the growing phrase left until the final line locks centered.",
"tags": [
"motion-primitive",
"text-effects",
"kinetic-type",
"reveal",
"remocn-port"
],
"href": "/catalog/components/kinetic-center-build",
"preview": "https://static.heygen.ai/hyperframes-oss/docs/images/catalog/components/kinetic-center-build.png"
},
{
"name": "kinetic-type-swap",
"type": "component",
Expand Down
1 change: 1 addition & 0 deletions docs/public/catalog/components/kinetic-center-build.json

Large diffs are not rendered by default.

86 changes: 86 additions & 0 deletions registry/components/kinetic-center-build/demo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<!doctype html>
<!--
Kinetic Center Build demo. The 1280x720 frame and default values match the
pinned Hyfrme parity fixture so reviewers can compare the motion directly.
-->
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=1280, height=720" />
<title>Kinetic Center Build Demo</title>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Geist:wght@600&amp;display=block"
/>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

html,
body {
width: 1280px;
height: 720px;
overflow: hidden;
}

#root {
--font-display: Geist, system-ui, sans-serif;
position: relative;
width: 1280px;
height: 720px;
overflow: hidden;
}

.kcb-demo-background,
.kcb-demo-mount {
position: absolute;
inset: 0;
width: 1280px;
height: 720px;
}

.kcb-demo-background {
background: #ffffff;
}
</style>
</head>
<body>
<div
id="root"
data-composition-id="kinetic-center-build-demo"
data-start="0"
data-width="1280"
data-height="720"
data-duration="2"
data-fps="30"
>
<div
id="kcb-demo-background"
class="kcb-demo-background clip"
data-start="0"
data-duration="2"
data-track-index="0"
></div>
<div
id="kcb-demo-mount"
class="kcb-demo-mount clip"
data-composition-id="kinetic-center-build"
data-composition-src="./kinetic-center-build.html"
data-start="0"
data-duration="2"
data-track-index="1"
data-width="1280"
data-height="720"
></div>
</div>

<script src="https://cdn.jsdelivr.net/npm/gsap@3.14.2/dist/gsap.min.js"></script>
<script>
window.__timelines = window.__timelines || {};
window.__timelines["kinetic-center-build-demo"] = gsap.timeline({ paused: true });
</script>
</body>
</html>
Loading
Loading