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:
@@ -1,5 +1,5 @@
|
||||
<!--
|
||||
Slot Machine Roll - remocn typography primitive for HyperFrames.
|
||||
Slot Machine Roll - 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.
|
||||
@@ -27,7 +27,7 @@
|
||||
-->
|
||||
|
||||
<div
|
||||
class="hf-remocn-slot-machine-roll"
|
||||
class="hf-catalog-slot-machine-roll"
|
||||
data-composition-variables='[
|
||||
{ "id": "result", "type": "string", "role": "content", "label": "Result", "description": "Characters the reels land on, one reel column per character. Whitespace is stripped and every reel starts on a zero.", "default": "A7K" },
|
||||
{ "id": "direction", "type": "enum", "role": "motion", "label": "Direction", "description": "Which way the reels roll: up lifts the zero out through the top, down drops it out through the bottom.", "default": "up", "options": [{ "value": "up", "label": "Up" }, { "value": "down", "label": "Down" }] },
|
||||
@@ -45,13 +45,13 @@
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.hf-remocn-slot-machine-roll {
|
||||
.hf-catalog-slot-machine-roll {
|
||||
color: var(--hf-slot-color, #18181b);
|
||||
font-family: Inter, system-ui, sans-serif;
|
||||
font-weight: 900;
|
||||
letter-spacing: -0.04em;
|
||||
}
|
||||
.hf-remocn-slot-machine-roll {
|
||||
.hf-catalog-slot-machine-roll {
|
||||
display: inline-flex;
|
||||
gap: 6px;
|
||||
height: var(--hf-slot-row, 74px);
|
||||
@@ -62,12 +62,12 @@
|
||||
Menlo,
|
||||
monospace;
|
||||
}
|
||||
.hf-remocn-slot-machine-roll span {
|
||||
.hf-catalog-slot-machine-roll span {
|
||||
display: block;
|
||||
height: var(--hf-slot-row, 74px);
|
||||
overflow: hidden;
|
||||
}
|
||||
.hf-remocn-slot-machine-roll i {
|
||||
.hf-catalog-slot-machine-roll i {
|
||||
display: block;
|
||||
font-style: normal;
|
||||
transform: translateY(
|
||||
@@ -107,7 +107,7 @@
|
||||
var result = (typeof vars.result === "string" ? vars.result : "").replace(/\s+/g, "");
|
||||
if (result.length === 0) result = "A7K";
|
||||
|
||||
var roots = document.querySelectorAll(".hf-remocn-slot-machine-roll");
|
||||
var roots = document.querySelectorAll(".hf-catalog-slot-machine-roll");
|
||||
for (var i = 0; i < roots.length; i += 1) {
|
||||
var root = roots[i];
|
||||
root.style.setProperty("--hf-slot-row", row + "px");
|
||||
@@ -132,5 +132,5 @@
|
||||
|
||||
<!--
|
||||
Timeline integration:
|
||||
tl.fromTo('.hf-remocn-slot-machine-roll i', { '--hf-slot-y': '0px' }, { '--hf-slot-y': '-74px', duration: 0.52, stagger: 0.06, ease: 'power3.inOut' }, startTime);
|
||||
tl.fromTo('.hf-catalog-slot-machine-roll i', { '--hf-slot-y': '0px' }, { '--hf-slot-y': '-74px', duration: 0.52, stagger: 0.06, ease: 'power3.inOut' }, startTime);
|
||||
-->
|
||||
|
||||
Reference in New Issue
Block a user