code-slice-hero
できること
このスキルは、タイル状の3D表面の効果を持つ既製の HyperFrames の見出しブロックです。奥行きと光の動きを感じさせる、現代的でアニメーションのある見出しの表示を、カスタマイズしたい動画制作者向けです。
使う場面
- ✓タイルの反転で、2つ目のメッセージを見せる見出しがほしいとき。
- ✓奥行きと、光の柔らかい動きを持つ、現代的なタイトルシーンが必要なとき。
- ✓自分のテキストとタイミングで調整できる既製のブロックがほしいとき。
スキルのリンク
https://github.com/heygen-com/hyperframes/blob/main/registry/blocks/code-slice-hero/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“製品発表用にタイルの反転タイトルを使い、私の見出しのテキストに差し替えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このブロックは、編集可能なソースファイルとしてインストールされます。カーソルの動きの効果が近くのタイルを持ち上げて傾け、見出しの下にあるタイルだけが反転して2つ目のメッセージを見せます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Code Slice Hero
A full square-tile surface carries one seamless headline. An imaginary cursor crosses the surface; nearby tiles respond to its Gaussian depth field with lift and tilt, and only the cells intersecting either headline silhouette turn over to reveal the rear headline. The whole grid is one instanced WebGL 2 draw with a shared front/rear texture pair, plus a batched projected-shadow pass. Copy, text size and square cell size are independent, so tiles never stretch. Sweep direction, easing strength, cursor radius, falloff, depth, bounce and shadow are all variables.
Composition id: code-slice-hero. Duration 8 s at 30 fps, 1920×1080.
Files
code-slice-hero.html(24 KB)assets/Geist-Bold.ttf(65 KB)assets/Geist-OFL.txt(4 KB)assets/gsap-3.14.2.min.js(128 KB)assets/GSAP-NOTICE.txt(1 KB)shadows.js(10 KB)surface.js(8 KB)
Install
Install with npx hyperframes add code-slice-hero; by default the files above land under compositions/code-slice-hero/. Then mount the block from the host index.html:
<div
data-composition-id="code-slice-hero"
data-composition-src="compositions/code-slice-hero/code-slice-hero.html"
data-start="0"
data-duration="8"
data-track-index="1"
data-width="1920"
data-height="1080"
></div>
Render with custom values by targeting the composition file directly:
npx --yes hyperframes@0.8.12 render 'compositions/code-slice-hero/code-slice-hero.html' --variables '{"headline":"MAKE IT","reverseHeadline":"MATTER."}'
Variables
Read at runtime via window.__hyperframes.getVariables(); declared on the composition root as data-composition-variables (single-quoted attribute, plain JSON).
| id | type | default | label / range |
| ------------------- | ------ | ----------------- | ------------------------------------------------- | -------------- |
| headline | string | "MAKE IT" | Copy · Front headline max 32 chars |
| reverseHeadline | string | "MATTER." | Copy · Rear headline max 32 chars |
| direction | enum | "left-to-right" | Motion · Sweep direction (left-to-right | right-to-left) |
| sweepDuration | number | 4.2 | Motion · Sweep duration 2.6–4.5 step 0.05 |
| sweepEaseStrength | number | 3 | Motion · Sweep easing strength 0–3 step 0.05 |
| flipDuration | number | 0.75 | Motion · Each tile flip 0.65–1.65 step 0.05 |
| cursorRadius | number | 210 | Cursor · Influence radius 160–480 step 10 |
| cursorFalloff | number | 1.4 | Cursor · Influence falloff 0.4–3.5 step 0.05 |
| cursorDepth | number | 80 | Cursor · Depth (+ toward camera) -320–320 step 10 |
| tiltStrength | number | 55 | Cursor · Pull / tilt strength 0–55 step 1 |
| noiseStrength | number | 2 | Motion · Organic variation 0–2 step 0.05 |
| flipBounce | number | 0.15 | Motion · Elastic flip bounce 0–0.8 step 0.05 |
| cellSize | number | 112 | Slices · Square cell size 24–120 step 4 |
| formationScale | number | 1 | Slices · Local formation scale 0.94–1 step 0.001 |
| fontSize | number | 310 | Type · Maximum size 160–480 step 5 |
| behindColor | color | "#212121" | Surface · Behind-tile background |
| shadowStrength | number | 0.19 | Surface · Cast shadow strength 0–0.65 step 0.01 |
| shadowSoftness | number | 4 | Surface · Cast shadow softness 0.5–4 step 0.1 |
Runtime contract
- One paused GSAP timeline registered as
window.__timelines["code-slice-hero"]. - Re-syncs on the
hf-seekCustomEvent; every frame is a closed-form function of time (seeded PRNG only, no rAF loops, no Date.now). - Renderer: GSAP, Canvas 2D, Seeded PRNG.
- External runtime dependencies: none (served locally).
- Local fonts: assets/Geist-Bold.ttf.
Editing rules (from the source project)
- Keep
data-composition-variablesa single-quoted attribute with plain"JSON. Never save it through Studio's Design panel. - Do not put
<canvas>in static markup; create it at runtime. - Keep every visual state
よくある質問
シーンはどれくらいの長さですか?
8秒で、毎秒30フレーム、1920 x 1080 です。
テキストを変えると伸びますか?
いいえ。テキストのサイズとタイルのサイズは別々に設定されるため、タイルは正方形の形を保ちます。
何を調整できますか?
文言、テキストのサイズ、スイープの方向、カーソルの半径、奥行き、影などを変えられます。
詳細
作者による元の説明
A tiled headline surface flips cell by cell under a sweeping depth field to reveal the rear headline. HyperFrames block, 1920×1080, 8s, 18 variables.
repo: heygen-com/hyperframes
人気
- GitHubのスター
- 78k
- ランキング
- #1733
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
captions-overlay
78k動画に字幕をオーバーレイとして付ける方法をガイドします。どの話し言葉を削除し、どれを字幕の帯に表示し、どれを強調するかを決めます。
cut-the-curve
78kHyperFrames 動画で使われるトランジションを教えます。滑らかなシーンの切り替え、ズームスルー、ずらして表示するテキストの動きなどを含みます。
motion-doctrine
78k複数のシーンからなる動画を、別々のスライドではなく、ひとつながりのカメラの動きのように感じさせるための基本ルールをエージェントに与えます。
oversized-cursor
78k動画に大きく動くポインターを追加して、視聴者の視線を誘導し、クリックが次の動きの原因に見えるように演出するよう、エージェントに教えます。
似ているスキル
blender-motion-state-inspection
280k3Dアニメーションの細部を確認できるようにします。ポーズ、動き、キャラクターの位置合わせをチェックするのに役立ちます。
manim-video
280kエージェントがアニメーション付きの解説動画を作成するのを支援します。Manimを使い、技術的な概念を分かりやすく示すグラフや図を生成します。
remotion-video-creation
280kReactとライブラリの Remotion を使って、エージェントが動画を作成するためのガイドです。アニメーション、音声、字幕などの視覚要素に関するベストプラクティスを扱います。