mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-11 14:50:02 +00:00
chore(catalog): remove internal source markers
This commit is contained in:
@@ -15,7 +15,7 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
|
||||
|
||||
```html rgb-glitch-text.html
|
||||
<!--
|
||||
RGB Glitch Text - remocn typography primitive for HyperFrames.
|
||||
RGB Glitch Text - 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.
|
||||
@@ -40,7 +40,7 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
|
||||
-->
|
||||
|
||||
<div
|
||||
class="hf-remocn-rgb-glitch-text"
|
||||
class="hf-catalog-rgb-glitch-text"
|
||||
data-composition-variables='[
|
||||
{ "id": "text", "type": "string", "role": "content", "label": "Text", "description": "The word shown on all three stacked copies.", "default": "GLITCH", "maxLength": 24 },
|
||||
{ "id": "intensity", "type": "enum", "role": "motion", "label": "Intensity", "description": "Scales the red and cyan offsets the timeline drives, so the split reads as a hairline or a hard tear.", "default": "standard", "options": [{ "value": "subtle", "label": "Subtle" }, { "value": "standard", "label": "Standard" }, { "value": "extreme", "label": "Extreme" }] },
|
||||
@@ -51,33 +51,33 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.hf-remocn-rgb-glitch-text {
|
||||
.hf-catalog-rgb-glitch-text {
|
||||
color: var(--hf-glitch-ink, #18181b);
|
||||
font-family: Inter, system-ui, sans-serif;
|
||||
font-weight: 900;
|
||||
letter-spacing: -0.04em;
|
||||
}
|
||||
.hf-remocn-rgb-glitch-text {
|
||||
.hf-catalog-rgb-glitch-text {
|
||||
position: relative;
|
||||
width: 420px;
|
||||
height: 82px;
|
||||
font-size: 72px;
|
||||
line-height: 1;
|
||||
}
|
||||
.hf-remocn-rgb-glitch-text span,
|
||||
.hf-remocn-rgb-glitch-text strong {
|
||||
.hf-catalog-rgb-glitch-text span,
|
||||
.hf-catalog-rgb-glitch-text strong {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
}
|
||||
.hf-remocn-rgb-glitch-text span:first-child {
|
||||
.hf-catalog-rgb-glitch-text span:first-child {
|
||||
color: #ef4444;
|
||||
transform: translateX(calc(var(--hf-glitch-red, 0px) * var(--hf-glitch-reach, 1)));
|
||||
}
|
||||
.hf-remocn-rgb-glitch-text span:nth-child(2) {
|
||||
.hf-catalog-rgb-glitch-text span:nth-child(2) {
|
||||
color: #22d3ee;
|
||||
transform: translateX(calc(var(--hf-glitch-blue, 0px) * var(--hf-glitch-reach, 1)));
|
||||
}
|
||||
.hf-remocn-rgb-glitch-text strong {
|
||||
.hf-catalog-rgb-glitch-text strong {
|
||||
color: var(--hf-glitch-ink, #18181b);
|
||||
}
|
||||
</style>
|
||||
@@ -108,7 +108,7 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
|
||||
var text =
|
||||
typeof vars.text === "string" && vars.text.trim() !== "" ? vars.text.trim() : "GLITCH";
|
||||
|
||||
var roots = document.querySelectorAll(".hf-remocn-rgb-glitch-text");
|
||||
var roots = document.querySelectorAll(".hf-catalog-rgb-glitch-text");
|
||||
for (var i = 0; i < roots.length; i += 1) {
|
||||
roots[i].style.setProperty("--hf-glitch-reach", String(reach));
|
||||
roots[i].style.setProperty("--hf-glitch-ink", tone);
|
||||
@@ -122,7 +122,7 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
|
||||
|
||||
<!--
|
||||
Timeline integration:
|
||||
tl.to('.hf-remocn-rgb-glitch-text', { opacity: 1, duration: 0.01 }, startTime); tl.to('.hf-remocn-rgb-glitch-text', { '--hf-glitch-red': '-8px', '--hf-glitch-blue': '8px', duration: 0.06, repeat: 5, yoyo: true, ease: 'steps(1)' }, startTime + 0.1);
|
||||
tl.to('.hf-catalog-rgb-glitch-text', { opacity: 1, duration: 0.01 }, startTime); tl.to('.hf-catalog-rgb-glitch-text', { '--hf-glitch-red': '-8px', '--hf-glitch-blue': '8px', duration: 0.06, repeat: 5, yoyo: true, ease: 'steps(1)' }, startTime + 0.1);
|
||||
-->
|
||||
```
|
||||
|
||||
@@ -162,7 +162,7 @@ defaults, so this behaves exactly like the preview above until you change one:
|
||||
|
||||
```html
|
||||
<!--
|
||||
RGB Glitch Text - remocn typography primitive for HyperFrames.
|
||||
RGB Glitch Text - 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.
|
||||
@@ -187,7 +187,7 @@ defaults, so this behaves exactly like the preview above until you change one:
|
||||
-->
|
||||
|
||||
<div
|
||||
class="hf-remocn-rgb-glitch-text"
|
||||
class="hf-catalog-rgb-glitch-text"
|
||||
data-composition-variables='[
|
||||
{ "id": "text", "type": "string", "role": "content", "label": "Text", "description": "The word shown on all three stacked copies.", "default": "GLITCH", "maxLength": 24 },
|
||||
{ "id": "intensity", "type": "enum", "role": "motion", "label": "Intensity", "description": "Scales the red and cyan offsets the timeline drives, so the split reads as a hairline or a hard tear.", "default": "standard", "options": [{ "value": "subtle", "label": "Subtle" }, { "value": "standard", "label": "Standard" }, { "value": "extreme", "label": "Extreme" }] },
|
||||
@@ -198,33 +198,33 @@ defaults, so this behaves exactly like the preview above until you change one:
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.hf-remocn-rgb-glitch-text {
|
||||
.hf-catalog-rgb-glitch-text {
|
||||
color: var(--hf-glitch-ink, #18181b);
|
||||
font-family: Inter, system-ui, sans-serif;
|
||||
font-weight: 900;
|
||||
letter-spacing: -0.04em;
|
||||
}
|
||||
.hf-remocn-rgb-glitch-text {
|
||||
.hf-catalog-rgb-glitch-text {
|
||||
position: relative;
|
||||
width: 420px;
|
||||
height: 82px;
|
||||
font-size: 72px;
|
||||
line-height: 1;
|
||||
}
|
||||
.hf-remocn-rgb-glitch-text span,
|
||||
.hf-remocn-rgb-glitch-text strong {
|
||||
.hf-catalog-rgb-glitch-text span,
|
||||
.hf-catalog-rgb-glitch-text strong {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
}
|
||||
.hf-remocn-rgb-glitch-text span:first-child {
|
||||
.hf-catalog-rgb-glitch-text span:first-child {
|
||||
color: #ef4444;
|
||||
transform: translateX(calc(var(--hf-glitch-red, 0px) * var(--hf-glitch-reach, 1)));
|
||||
}
|
||||
.hf-remocn-rgb-glitch-text span:nth-child(2) {
|
||||
.hf-catalog-rgb-glitch-text span:nth-child(2) {
|
||||
color: #22d3ee;
|
||||
transform: translateX(calc(var(--hf-glitch-blue, 0px) * var(--hf-glitch-reach, 1)));
|
||||
}
|
||||
.hf-remocn-rgb-glitch-text strong {
|
||||
.hf-catalog-rgb-glitch-text strong {
|
||||
color: var(--hf-glitch-ink, #18181b);
|
||||
}
|
||||
</style>
|
||||
@@ -255,7 +255,7 @@ defaults, so this behaves exactly like the preview above until you change one:
|
||||
var text =
|
||||
typeof vars.text === "string" && vars.text.trim() !== "" ? vars.text.trim() : "GLITCH";
|
||||
|
||||
var roots = document.querySelectorAll(".hf-remocn-rgb-glitch-text");
|
||||
var roots = document.querySelectorAll(".hf-catalog-rgb-glitch-text");
|
||||
for (var i = 0; i < roots.length; i += 1) {
|
||||
roots[i].style.setProperty("--hf-glitch-reach", String(reach));
|
||||
roots[i].style.setProperty("--hf-glitch-ink", tone);
|
||||
@@ -269,7 +269,7 @@ defaults, so this behaves exactly like the preview above until you change one:
|
||||
|
||||
<!--
|
||||
Timeline integration:
|
||||
tl.to('.hf-remocn-rgb-glitch-text', { opacity: 1, duration: 0.01 }, startTime); tl.to('.hf-remocn-rgb-glitch-text', { '--hf-glitch-red': '-8px', '--hf-glitch-blue': '8px', duration: 0.06, repeat: 5, yoyo: true, ease: 'steps(1)' }, startTime + 0.1);
|
||||
tl.to('.hf-catalog-rgb-glitch-text', { opacity: 1, duration: 0.01 }, startTime); tl.to('.hf-catalog-rgb-glitch-text', { '--hf-glitch-red': '-8px', '--hf-glitch-blue': '8px', duration: 0.06, repeat: 5, yoyo: true, ease: 'steps(1)' }, startTime + 0.1);
|
||||
-->
|
||||
```
|
||||
|
||||
@@ -281,7 +281,7 @@ Open `compositions/components/rgb-glitch-text.html` and paste its contents into
|
||||
|
||||
{/* hf:generated-footer */}
|
||||
|
||||
Tagged `motion-primitive` `remocn-port` `typography`.
|
||||
Tagged `motion-primitive` `typography`.
|
||||
|
||||
## Related topics
|
||||
|
||||
|
||||
Reference in New Issue
Block a user