본문으로 건너뛰기
Skillpedia
모션 및 애니메이션78k · #1733

code-slice-hero

하는 일

이것은 타일형 3D 표면 효과가 있는 준비된 HyperFrames 헤드라인 블록입니다. 바꿀 수 있는 현대적이고 애니메이션된 헤드라인 공개를 원하는 영상 제작자를 위한 블록입니다.

사용하는 경우

  • ✓타일 뒤집기로 두 번째 메시지를 드러내는 헤드라인을 원할 때.
  • ✓깊이감과 부드러운 빛의 움직임이 있는 현대적인 제목 장면이 필요할 때.
  • ✓내 문구와 타이밍으로 조정할 수 있는 준비된 블록을 원할 때.

스킬 링크

https://github.com/heygen-com/hyperframes/blob/main/registry/blocks/code-slice-hero/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/heygen-com/hyperframes/blob/main/registry/blocks/code-slice-hero/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 제품 출시 영상에 타일 뒤집기 제목을 쓰고, 헤드라인 문구를 제 것으로 바꿔 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

블록은 편집 가능한 소스 파일로 설치됩니다. 움직이는 커서 효과가 가까운 타일을 들어 올리고 기울이며, 헤드라인 아래의 타일만 뒤집혀 두 번째 메시지를 드러냅니다.

기술 내용 (원본 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-seek CustomEvent; 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)

  1. Keep data-composition-variables a single-quoted attribute with plain " JSON. Never save it through Studio's Design panel.
  2. Do not put <canvas> in static markup; create it at runtime.
  3. Keep every visual state
자주 묻는 질문

장면은 얼마나 긴가요?

1920×1080 해상도, 초당 30프레임으로 8초입니다.

문구를 바꾸면 텍스트가 늘어나나요?

아닙니다. 텍스트 크기와 타일 크기를 따로 설정하므로 타일은 정사각형 모양을 유지합니다.

무엇을 조정할 수 있나요?

문구, 텍스트 크기, 쓸기 방향, 커서 반경, 깊이, 그림자 등 여러 설정을 바꿀 수 있습니다.

상세 정보

작성자의 원본 설명

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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬