mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-17 23:47:33 +00:00
First slice of the HyperFrames Capability Showcase library at skills/website-to-hyperframes/examples/. Each scene is a self-contained mini-project (index.html in its own directory) that lints, snapshots, and renders standalone. Section 01 (typography) — 10 production-grade scenes, all PASS QC: 01 soft-blur-in — Apple keynote per-character reveal 02 typewriter-mechanical — stepped per-char terminal type-on 03 kinetic-center-build — words push in right-to-left, lock center 04 line-reveal-staggered — editorial mask-reveal-up with Fraunces italic 05 stagger-wave — center-out vs edges-in stagger origins 06 variable-font-weight-shift — wght 100→900 animation via @property 07 shared-axis-crossfade — Material Design Z-axis depth transition 08 glitch-rgb-split — RGB channel offset with mechanical jitter 09 scramble-decrypt — per-char intermediate substitution decrypt 10 per-word-emphasis — per-word crossfade + hand-drawn marker Plus catalog + shared assets: - examples/README.md — top-level index + lookup by technique - 01-typography/README.md — section spec + QC log per scene - _shared/hyper-shader-local.js — copied from packages/shader-transitions/dist/ - _shared/shared-styles.css — design tokens - _shared/easing-glossary.md — single source of truth for easings Authoring conventions are documented in examples/README.md so future scenes follow the same shape: full HTML doc, GSAP CDN, CustomEase, data-composition-id/ start/duration/width/height on root, scene-label at bottom-left, continuous motion (no static periods >1.5s), easing variety (3+ different easings). .gitignore: fixed bare 'examples/' rule (matched anywhere) to '/examples/' (root-only), and added rule to skip snapshot artifacts inside the library.
103 lines
2.2 KiB
CSS
103 lines
2.2 KiB
CSS
/*
|
||
* Shared design tokens for the examples library.
|
||
* Every scene that imports this gets the same type scale + neutral palette,
|
||
* so the catalog feels cohesive even though brands change.
|
||
*
|
||
* Import with:
|
||
* <link rel="stylesheet" href="../_shared/shared-styles.css">
|
||
*/
|
||
|
||
:root {
|
||
/* Neutral catalog palette — chosen so scenes look professional but not branded */
|
||
--bg-deep: #0a0a0a;
|
||
--bg-charcoal: #141414;
|
||
--bg-elevated: #1c1c1c;
|
||
--bg-card: #232323;
|
||
--fg-primary: #f5f5f5;
|
||
--fg-muted: #a3a3a3;
|
||
--fg-subtle: #707070;
|
||
--line: rgba(255, 255, 255, 0.08);
|
||
--line-strong: rgba(255, 255, 255, 0.18);
|
||
|
||
/* Accent rotation — pick ONE per scene, not all */
|
||
--accent-cyan: #06b6d4;
|
||
--accent-violet: #8b5cf6;
|
||
--accent-amber: #f59e0b;
|
||
--accent-rose: #f43f5e;
|
||
--accent-emerald: #10b981;
|
||
--accent-yellow: #fde047;
|
||
|
||
/* Type scale (1.25 ratio, base 16px @ 1920×1080) */
|
||
--t-1: 14px;
|
||
--t-2: 18px;
|
||
--t-3: 24px;
|
||
--t-4: 32px;
|
||
--t-5: 48px;
|
||
--t-6: 72px;
|
||
--t-7: 108px;
|
||
--t-8: 160px;
|
||
|
||
/* Spacing scale */
|
||
--s-1: 4px;
|
||
--s-2: 8px;
|
||
--s-3: 16px;
|
||
--s-4: 24px;
|
||
--s-5: 32px;
|
||
--s-6: 48px;
|
||
--s-7: 64px;
|
||
--s-8: 96px;
|
||
|
||
/* Radii */
|
||
--r-1: 4px;
|
||
--r-2: 8px;
|
||
--r-3: 12px;
|
||
--r-4: 16px;
|
||
--r-5: 24px;
|
||
--r-pill: 9999px;
|
||
}
|
||
|
||
/* Common scene resets — every scene root applies these */
|
||
.scene {
|
||
width: 1920px;
|
||
height: 1080px;
|
||
position: relative;
|
||
overflow: hidden;
|
||
background: var(--bg-deep);
|
||
color: var(--fg-primary);
|
||
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||
font-feature-settings: "ss01", "cv11";
|
||
-webkit-font-smoothing: antialiased;
|
||
}
|
||
|
||
/* Universal will-change opt-in for animated children */
|
||
.scene * {
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
/* Centered stage helper */
|
||
.stage-center {
|
||
position: absolute;
|
||
inset: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
/* Caption strip for technique label (shown at bottom-left of every scene) */
|
||
.scene-label {
|
||
position: absolute;
|
||
left: 48px;
|
||
bottom: 48px;
|
||
font-size: var(--t-2);
|
||
color: var(--fg-subtle);
|
||
letter-spacing: 0.04em;
|
||
text-transform: uppercase;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.scene-label .accent {
|
||
color: var(--fg-primary);
|
||
font-weight: 600;
|
||
}
|