mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-05 00:56:23 +00:00
chore(catalog): remove internal source markers
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<!--
|
||||
Top-Down Letters - remocn typography primitive for HyperFrames.
|
||||
Top-Down Letters - 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.
|
||||
@@ -28,7 +28,7 @@
|
||||
-->
|
||||
|
||||
<div
|
||||
class="hf-remocn-top-down-letters"
|
||||
class="hf-catalog-top-down-letters"
|
||||
data-composition-variables='[
|
||||
{ "id": "text", "type": "string", "role": "content", "label": "Text", "description": "Word that cascades in. Every character becomes one letter span, in source order.", "default": "CASCADE" },
|
||||
{ "id": "distance", "type": "enum", "role": "motion", "label": "Distance", "description": "Multiplies the drop the timeline drives, so the letters cover a shorter or longer run in the same time.", "default": "standard", "options": [{ "value": "close", "label": "Close" }, { "value": "standard", "label": "Standard" }, { "value": "far", "label": "Far" }] },
|
||||
@@ -39,20 +39,20 @@
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.hf-remocn-top-down-letters {
|
||||
.hf-catalog-top-down-letters {
|
||||
color: var(--hf-letters-color, #18181b);
|
||||
font-family: Inter, system-ui, sans-serif;
|
||||
font-weight: 900;
|
||||
letter-spacing: -0.04em;
|
||||
}
|
||||
.hf-remocn-top-down-letters {
|
||||
.hf-catalog-top-down-letters {
|
||||
display: inline-flex;
|
||||
gap: 1px;
|
||||
font-size: 74px;
|
||||
line-height: 0.9;
|
||||
overflow: hidden;
|
||||
}
|
||||
.hf-remocn-top-down-letters span {
|
||||
.hf-catalog-top-down-letters span {
|
||||
display: inline-block;
|
||||
transform: translateY(calc(var(--hf-char-y, 0px) * var(--hf-char-distance, 1)));
|
||||
will-change: transform, opacity;
|
||||
@@ -84,7 +84,7 @@
|
||||
var tone = tones[pick(tones, vars.tone, "ink")];
|
||||
var text = typeof vars.text === "string" && vars.text !== "" ? vars.text : null;
|
||||
|
||||
var roots = document.querySelectorAll(".hf-remocn-top-down-letters");
|
||||
var roots = document.querySelectorAll(".hf-catalog-top-down-letters");
|
||||
for (var i = 0; i < roots.length; i += 1) {
|
||||
var root = roots[i];
|
||||
root.style.setProperty("--hf-char-distance", String(distance));
|
||||
@@ -108,5 +108,5 @@
|
||||
|
||||
<!--
|
||||
Timeline integration:
|
||||
tl.fromTo('.hf-remocn-top-down-letters span', { opacity: 0, '--hf-char-y': '-42px' }, { opacity: 1, '--hf-char-y': '0px', duration: 0.22, stagger: 0.035, ease: 'power3.out' }, startTime);
|
||||
tl.fromTo('.hf-catalog-top-down-letters span', { opacity: 0, '--hf-char-y': '-42px' }, { opacity: 1, '--hf-char-y': '0px', duration: 0.22, stagger: 0.035, ease: 'power3.out' }, startTime);
|
||||
-->
|
||||
|
||||
Reference in New Issue
Block a user