mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-11 06:30:03 +00:00
chore(catalog): remove internal source markers
This commit is contained in:
+7
-7
@@ -1,5 +1,5 @@
|
||||
<!--
|
||||
Shared Axis Z - remocn typography primitive for HyperFrames.
|
||||
Shared Axis Z - typography primitive for HyperFrames.
|
||||
|
||||
Paste the markup, CSS and script into a composition. Drive the timeline
|
||||
integration from a paused GSAP timeline so renders remain deterministic.
|
||||
@@ -25,7 +25,7 @@
|
||||
-->
|
||||
|
||||
<div
|
||||
class="hf-remocn-shared-axis-z"
|
||||
class="hf-catalog-shared-axis-z"
|
||||
data-composition-variables='[
|
||||
{ "id": "direction", "type": "enum", "role": "motion", "label": "Direction", "description": "Which way the words travel along the z axis: in swells up from small, out settles down from large.", "default": "in", "options": [{ "value": "in", "label": "In" }, { "value": "out", "label": "Out" }] },
|
||||
{ "id": "depth", "type": "enum", "role": "motion", "label": "Depth", "description": "Scales how far the words start from their final size, so the push covers a shorter or longer run in the same time.", "default": "standard", "options": [{ "value": "shallow", "label": "Shallow" }, { "value": "standard", "label": "Standard" }, { "value": "deep", "label": "Deep" }] },
|
||||
@@ -36,19 +36,19 @@
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.hf-remocn-shared-axis-z {
|
||||
.hf-catalog-shared-axis-z {
|
||||
color: var(--hf-word-color, #18181b);
|
||||
font-family: Inter, system-ui, sans-serif;
|
||||
font-weight: 900;
|
||||
letter-spacing: -0.04em;
|
||||
}
|
||||
.hf-remocn-shared-axis-z {
|
||||
.hf-catalog-shared-axis-z {
|
||||
display: inline-flex;
|
||||
gap: 12px;
|
||||
font-size: 56px;
|
||||
line-height: 1;
|
||||
}
|
||||
.hf-remocn-shared-axis-z span {
|
||||
.hf-catalog-shared-axis-z span {
|
||||
display: inline-block;
|
||||
transform: translate(var(--hf-word-x, 0px), var(--hf-word-y, 0px))
|
||||
scale(calc(1 + (var(--hf-word-scale, 1) - 1) * var(--hf-word-depth, 1)));
|
||||
@@ -83,7 +83,7 @@
|
||||
var reach = reaches[pick(reaches, vars.depth, "standard")];
|
||||
var tone = tones[pick(tones, vars.tone, "ink")];
|
||||
|
||||
var roots = document.querySelectorAll(".hf-remocn-shared-axis-z");
|
||||
var roots = document.querySelectorAll(".hf-catalog-shared-axis-z");
|
||||
for (var i = 0; i < roots.length; i += 1) {
|
||||
roots[i].style.setProperty("--hf-word-depth", String(sign * reach));
|
||||
roots[i].style.setProperty("--hf-word-color", tone);
|
||||
@@ -93,5 +93,5 @@
|
||||
|
||||
<!--
|
||||
Timeline integration:
|
||||
tl.fromTo('.hf-remocn-shared-axis-z span', { opacity: 0, '--hf-word-scale': 0.72 }, { opacity: 1, '--hf-word-scale': 1, duration: 0.34, stagger: 0.06, ease: 'back.out(1.8)' }, startTime);
|
||||
tl.fromTo('.hf-catalog-shared-axis-z span', { opacity: 0, '--hf-word-scale': 0.72 }, { opacity: 1, '--hf-word-scale': 1, duration: 0.34, stagger: 0.06, ease: 'back.out(1.8)' }, startTime);
|
||||
-->
|
||||
|
||||
Reference in New Issue
Block a user