mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-07 01:56:04 +00:00
chore(catalog): remove internal source markers
This commit is contained in:
+7
-7
@@ -1,5 +1,5 @@
|
||||
<!--
|
||||
Blur Out Up - remocn typography primitive for HyperFrames.
|
||||
Blur Out Up - 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-blur-out-up"
|
||||
class="hf-catalog-blur-out-up"
|
||||
data-composition-variables='[
|
||||
{ "id": "direction", "type": "enum", "role": "motion", "label": "Direction", "description": "Where the offset the timeline drives points.", "default": "up", "options": [{ "value": "up", "label": "Up" }, { "value": "down", "label": "Down" }, { "value": "left", "label": "Left" }, { "value": "right", "label": "Right" }] },
|
||||
{ "id": "distance", "type": "enum", "role": "motion", "label": "Distance", "description": "Scales the travel offset, so the words 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" }] },
|
||||
@@ -37,19 +37,19 @@
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.hf-remocn-blur-out-up {
|
||||
.hf-catalog-blur-out-up {
|
||||
color: var(--hf-word-color, #18181b);
|
||||
font-family: Inter, system-ui, sans-serif;
|
||||
font-weight: 900;
|
||||
letter-spacing: -0.04em;
|
||||
}
|
||||
.hf-remocn-blur-out-up {
|
||||
.hf-catalog-blur-out-up {
|
||||
display: inline-flex;
|
||||
gap: 12px;
|
||||
font-size: 56px;
|
||||
line-height: 1;
|
||||
}
|
||||
.hf-remocn-blur-out-up span {
|
||||
.hf-catalog-blur-out-up span {
|
||||
display: inline-block;
|
||||
transform: translate(
|
||||
calc(var(--hf-word-x, 0px) + var(--hf-word-y, 0px) * var(--hf-word-axis-x, 0)),
|
||||
@@ -94,7 +94,7 @@
|
||||
var blurScale = blurScales[pick(blurScales, vars.blur, "standard")];
|
||||
var tone = tones[pick(tones, vars.tone, "ink")];
|
||||
|
||||
var roots = document.querySelectorAll(".hf-remocn-blur-out-up");
|
||||
var roots = document.querySelectorAll(".hf-catalog-blur-out-up");
|
||||
for (var i = 0; i < roots.length; i += 1) {
|
||||
roots[i].style.setProperty("--hf-word-axis-x", String(axis.x * reach));
|
||||
roots[i].style.setProperty("--hf-word-axis-y", String(axis.y * reach));
|
||||
@@ -106,5 +106,5 @@
|
||||
|
||||
<!--
|
||||
Timeline integration:
|
||||
tl.fromTo('.hf-remocn-blur-out-up span', { opacity: 0, '--hf-word-y': '22px', '--hf-word-scale': 0.92, '--hf-word-blur': '5px' }, { opacity: 1, '--hf-word-y': '0px', '--hf-word-scale': 1, '--hf-word-blur': '0px', duration: 0.3, stagger: 0.055, ease: 'power3.out' }, startTime);
|
||||
tl.fromTo('.hf-catalog-blur-out-up span', { opacity: 0, '--hf-word-y': '22px', '--hf-word-scale': 0.92, '--hf-word-blur': '5px' }, { opacity: 1, '--hf-word-y': '0px', '--hf-word-scale': 1, '--hf-word-blur': '0px', duration: 0.3, stagger: 0.055, ease: 'power3.out' }, startTime);
|
||||
-->
|
||||
|
||||
Reference in New Issue
Block a user