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:
@@ -15,7 +15,7 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
|
||||
|
||||
```html directional-wipe.html
|
||||
<!--
|
||||
Directional Wipe - remocn component ported to HyperFrames authoring format.
|
||||
Directional Wipe - catalog component for HyperFrames.
|
||||
|
||||
Paste the markup and CSS into a composition. Drive the timeline integration
|
||||
from a paused GSAP timeline so renders remain deterministic.
|
||||
@@ -37,7 +37,7 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
|
||||
-->
|
||||
|
||||
<div
|
||||
class="hf-remocn-directional-wipe"
|
||||
class="hf-catalog-directional-wipe"
|
||||
data-composition-variables='[
|
||||
{ "id": "palette", "type": "enum", "role": "style", "label": "Palette", "description": "Theme token for the ring marking the incoming panel. Slate rides --accent, teal --brand, ember --accent-2; each falls back to a neutral hairline.", "default": "slate", "options": [{ "value": "slate", "label": "Slate" }, { "value": "teal", "label": "Teal" }, { "value": "ember", "label": "Ember" }] },
|
||||
{ "id": "corner", "type": "enum", "role": "style", "label": "Corner", "description": "Corner radius of the transition card.", "default": "rounded", "options": [{ "value": "square", "label": "Square" }, { "value": "rounded", "label": "Rounded" }, { "value": "soft", "label": "Soft" }] }
|
||||
@@ -50,7 +50,7 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.hf-remocn-directional-wipe {
|
||||
.hf-catalog-directional-wipe {
|
||||
--hf-accent: var(--accent, rgba(255, 255, 255, 0.28));
|
||||
--hf-l1: rgba(255, 255, 255, 0.72);
|
||||
--hf-l3: rgba(255, 255, 255, 0.18);
|
||||
@@ -62,7 +62,7 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
|
||||
color: var(--hf-ink);
|
||||
font-family: Inter, system-ui, sans-serif;
|
||||
}
|
||||
.hf-remocn-directional-wipe {
|
||||
.hf-catalog-directional-wipe {
|
||||
position: relative;
|
||||
width: 760px;
|
||||
height: 428px;
|
||||
@@ -71,7 +71,7 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
|
||||
background: #111827;
|
||||
box-shadow: 0 28px 80px rgba(15, 23, 42, 0.2);
|
||||
}
|
||||
.hf-remocn-directional-wipe .scene {
|
||||
.hf-catalog-directional-wipe .scene {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: grid;
|
||||
@@ -81,7 +81,7 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
|
||||
letter-spacing: -0.05em;
|
||||
color: #fff;
|
||||
}
|
||||
.hf-remocn-directional-wipe .from {
|
||||
.hf-catalog-directional-wipe .from {
|
||||
background:
|
||||
repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 4px),
|
||||
var(--hf-l4);
|
||||
@@ -89,7 +89,7 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
|
||||
scale(var(--hf-from-scale, 1));
|
||||
filter: blur(var(--hf-from-blur, 0px));
|
||||
}
|
||||
.hf-remocn-directional-wipe .to {
|
||||
.hf-catalog-directional-wipe .to {
|
||||
background:
|
||||
repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 4px),
|
||||
var(--hf-l3);
|
||||
@@ -100,14 +100,14 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
|
||||
var(--hf-clip-left, 0%)
|
||||
);
|
||||
}
|
||||
.hf-remocn-directional-wipe .fx {
|
||||
.hf-catalog-directional-wipe .fx {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
|
||||
mix-blend-mode: screen;
|
||||
transform: translateX(var(--hf-fx-x, -110%));
|
||||
}
|
||||
.hf-remocn-directional-wipe .rgb {
|
||||
.hf-catalog-directional-wipe .rgb {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
@@ -148,7 +148,7 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
|
||||
var palette = palettes[pick(palettes, vars.palette, "slate")];
|
||||
var corner = corners[pick(corners, vars.corner, "rounded")];
|
||||
|
||||
var roots = document.querySelectorAll(".hf-remocn-directional-wipe");
|
||||
var roots = document.querySelectorAll(".hf-catalog-directional-wipe");
|
||||
for (var i = 0; i < roots.length; i += 1) {
|
||||
roots[i].style.setProperty("--hf-accent", palette);
|
||||
roots[i].style.setProperty("--hf-corner", corner);
|
||||
@@ -158,7 +158,7 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
|
||||
|
||||
<!--
|
||||
Timeline integration:
|
||||
tl.fromTo('.hf-remocn-directional-wipe .to', { '--hf-clip-right': '100%', '--hf-to-x': '60px', '--hf-to-scale': 1.04 }, { '--hf-clip-right': '0%', '--hf-to-x': '0px', '--hf-to-scale': 1, duration: 0.9, ease: 'power3.inOut' }, startTime); tl.to('.hf-remocn-directional-wipe .from', { '--hf-from-x': '-70px', '--hf-from-scale': 0.96, '--hf-from-blur': '5px', duration: 0.9, ease: 'power3.inOut' }, startTime); tl.fromTo('.hf-remocn-directional-wipe .fx', { '--hf-fx-x': '-110%' }, { '--hf-fx-x': '110%', duration: 0.58, ease: 'power2.inOut' }, startTime + 0.18); tl.fromTo('.hf-remocn-directional-wipe .rgb', { '--hf-rgb-opacity': 0, '--hf-rgb-x': '-16px' }, { '--hf-rgb-opacity': 1, '--hf-rgb-x': '16px', repeat: 3, yoyo: true, duration: 0.07, ease: 'steps(1)' }, startTime + 0.32);
|
||||
tl.fromTo('.hf-catalog-directional-wipe .to', { '--hf-clip-right': '100%', '--hf-to-x': '60px', '--hf-to-scale': 1.04 }, { '--hf-clip-right': '0%', '--hf-to-x': '0px', '--hf-to-scale': 1, duration: 0.9, ease: 'power3.inOut' }, startTime); tl.to('.hf-catalog-directional-wipe .from', { '--hf-from-x': '-70px', '--hf-from-scale': 0.96, '--hf-from-blur': '5px', duration: 0.9, ease: 'power3.inOut' }, startTime); tl.fromTo('.hf-catalog-directional-wipe .fx', { '--hf-fx-x': '-110%' }, { '--hf-fx-x': '110%', duration: 0.58, ease: 'power2.inOut' }, startTime + 0.18); tl.fromTo('.hf-catalog-directional-wipe .rgb', { '--hf-rgb-opacity': 0, '--hf-rgb-x': '-16px' }, { '--hf-rgb-opacity': 1, '--hf-rgb-x': '16px', repeat: 3, yoyo: true, duration: 0.07, ease: 'steps(1)' }, startTime + 0.32);
|
||||
-->
|
||||
```
|
||||
|
||||
@@ -197,7 +197,7 @@ defaults, so this behaves exactly like the preview above until you change one:
|
||||
|
||||
```html
|
||||
<!--
|
||||
Directional Wipe - remocn component ported to HyperFrames authoring format.
|
||||
Directional Wipe - catalog component for HyperFrames.
|
||||
|
||||
Paste the markup and CSS into a composition. Drive the timeline integration
|
||||
from a paused GSAP timeline so renders remain deterministic.
|
||||
@@ -219,7 +219,7 @@ defaults, so this behaves exactly like the preview above until you change one:
|
||||
-->
|
||||
|
||||
<div
|
||||
class="hf-remocn-directional-wipe"
|
||||
class="hf-catalog-directional-wipe"
|
||||
data-composition-variables='[
|
||||
{ "id": "palette", "type": "enum", "role": "style", "label": "Palette", "description": "Theme token for the ring marking the incoming panel. Slate rides --accent, teal --brand, ember --accent-2; each falls back to a neutral hairline.", "default": "slate", "options": [{ "value": "slate", "label": "Slate" }, { "value": "teal", "label": "Teal" }, { "value": "ember", "label": "Ember" }] },
|
||||
{ "id": "corner", "type": "enum", "role": "style", "label": "Corner", "description": "Corner radius of the transition card.", "default": "rounded", "options": [{ "value": "square", "label": "Square" }, { "value": "rounded", "label": "Rounded" }, { "value": "soft", "label": "Soft" }] }
|
||||
@@ -232,7 +232,7 @@ defaults, so this behaves exactly like the preview above until you change one:
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.hf-remocn-directional-wipe {
|
||||
.hf-catalog-directional-wipe {
|
||||
--hf-accent: var(--accent, rgba(255, 255, 255, 0.28));
|
||||
--hf-l1: rgba(255, 255, 255, 0.72);
|
||||
--hf-l3: rgba(255, 255, 255, 0.18);
|
||||
@@ -244,7 +244,7 @@ defaults, so this behaves exactly like the preview above until you change one:
|
||||
color: var(--hf-ink);
|
||||
font-family: Inter, system-ui, sans-serif;
|
||||
}
|
||||
.hf-remocn-directional-wipe {
|
||||
.hf-catalog-directional-wipe {
|
||||
position: relative;
|
||||
width: 760px;
|
||||
height: 428px;
|
||||
@@ -253,7 +253,7 @@ defaults, so this behaves exactly like the preview above until you change one:
|
||||
background: #111827;
|
||||
box-shadow: 0 28px 80px rgba(15, 23, 42, 0.2);
|
||||
}
|
||||
.hf-remocn-directional-wipe .scene {
|
||||
.hf-catalog-directional-wipe .scene {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: grid;
|
||||
@@ -263,7 +263,7 @@ defaults, so this behaves exactly like the preview above until you change one:
|
||||
letter-spacing: -0.05em;
|
||||
color: #fff;
|
||||
}
|
||||
.hf-remocn-directional-wipe .from {
|
||||
.hf-catalog-directional-wipe .from {
|
||||
background:
|
||||
repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 4px),
|
||||
var(--hf-l4);
|
||||
@@ -271,7 +271,7 @@ defaults, so this behaves exactly like the preview above until you change one:
|
||||
scale(var(--hf-from-scale, 1));
|
||||
filter: blur(var(--hf-from-blur, 0px));
|
||||
}
|
||||
.hf-remocn-directional-wipe .to {
|
||||
.hf-catalog-directional-wipe .to {
|
||||
background:
|
||||
repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 4px),
|
||||
var(--hf-l3);
|
||||
@@ -282,14 +282,14 @@ defaults, so this behaves exactly like the preview above until you change one:
|
||||
var(--hf-clip-left, 0%)
|
||||
);
|
||||
}
|
||||
.hf-remocn-directional-wipe .fx {
|
||||
.hf-catalog-directional-wipe .fx {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
|
||||
mix-blend-mode: screen;
|
||||
transform: translateX(var(--hf-fx-x, -110%));
|
||||
}
|
||||
.hf-remocn-directional-wipe .rgb {
|
||||
.hf-catalog-directional-wipe .rgb {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
@@ -330,7 +330,7 @@ defaults, so this behaves exactly like the preview above until you change one:
|
||||
var palette = palettes[pick(palettes, vars.palette, "slate")];
|
||||
var corner = corners[pick(corners, vars.corner, "rounded")];
|
||||
|
||||
var roots = document.querySelectorAll(".hf-remocn-directional-wipe");
|
||||
var roots = document.querySelectorAll(".hf-catalog-directional-wipe");
|
||||
for (var i = 0; i < roots.length; i += 1) {
|
||||
roots[i].style.setProperty("--hf-accent", palette);
|
||||
roots[i].style.setProperty("--hf-corner", corner);
|
||||
@@ -340,7 +340,7 @@ defaults, so this behaves exactly like the preview above until you change one:
|
||||
|
||||
<!--
|
||||
Timeline integration:
|
||||
tl.fromTo('.hf-remocn-directional-wipe .to', { '--hf-clip-right': '100%', '--hf-to-x': '60px', '--hf-to-scale': 1.04 }, { '--hf-clip-right': '0%', '--hf-to-x': '0px', '--hf-to-scale': 1, duration: 0.9, ease: 'power3.inOut' }, startTime); tl.to('.hf-remocn-directional-wipe .from', { '--hf-from-x': '-70px', '--hf-from-scale': 0.96, '--hf-from-blur': '5px', duration: 0.9, ease: 'power3.inOut' }, startTime); tl.fromTo('.hf-remocn-directional-wipe .fx', { '--hf-fx-x': '-110%' }, { '--hf-fx-x': '110%', duration: 0.58, ease: 'power2.inOut' }, startTime + 0.18); tl.fromTo('.hf-remocn-directional-wipe .rgb', { '--hf-rgb-opacity': 0, '--hf-rgb-x': '-16px' }, { '--hf-rgb-opacity': 1, '--hf-rgb-x': '16px', repeat: 3, yoyo: true, duration: 0.07, ease: 'steps(1)' }, startTime + 0.32);
|
||||
tl.fromTo('.hf-catalog-directional-wipe .to', { '--hf-clip-right': '100%', '--hf-to-x': '60px', '--hf-to-scale': 1.04 }, { '--hf-clip-right': '0%', '--hf-to-x': '0px', '--hf-to-scale': 1, duration: 0.9, ease: 'power3.inOut' }, startTime); tl.to('.hf-catalog-directional-wipe .from', { '--hf-from-x': '-70px', '--hf-from-scale': 0.96, '--hf-from-blur': '5px', duration: 0.9, ease: 'power3.inOut' }, startTime); tl.fromTo('.hf-catalog-directional-wipe .fx', { '--hf-fx-x': '-110%' }, { '--hf-fx-x': '110%', duration: 0.58, ease: 'power2.inOut' }, startTime + 0.18); tl.fromTo('.hf-catalog-directional-wipe .rgb', { '--hf-rgb-opacity': 0, '--hf-rgb-x': '-16px' }, { '--hf-rgb-opacity': 1, '--hf-rgb-x': '16px', repeat: 3, yoyo: true, duration: 0.07, ease: 'steps(1)' }, startTime + 0.32);
|
||||
-->
|
||||
```
|
||||
|
||||
@@ -352,7 +352,7 @@ Open `compositions/components/directional-wipe.html` and paste its contents into
|
||||
|
||||
{/* hf:generated-footer */}
|
||||
|
||||
Tagged `transition-primitive` `remocn-port`.
|
||||
Tagged `transition-primitive`.
|
||||
|
||||
## Related topics
|
||||
|
||||
|
||||
Reference in New Issue
Block a user