Communitygithub.com

html-motion-overlays

1080x1920 세로 릴을 위해 16개의 블록 패턴, 브랜드 디자인 계약(frame.md), 얼굴 안전 배치 및 엄격한 CSP 보안 규칙을 사용하여 브랜드 고유의 HTML/CSS/SVG 모션 그래픽 오버레이(Paper.design for Video)를 디자인합니다.

html-motion-overlays란 무엇인가요?

이 기술은 기존 비디오 편집기의 투박한 텍스트 스티커나 AI가 생성한 잘못된 텍스트 대신, 완성된 릴 위에 렌더링되는 1080×1920 투명 캔버스에 픽셀 단위로 선명한 HTML/CSS/SVG 오버레이를 제작합니다. frame.md라는 브랜드 디자인 계약을 통해 각 오버레이의 색상, 타이포그래피, 모서리 반경, 시각적 규칙을 하나의 디자인 시스템으로 통일합니다. 16가지 검증된 모션 블록 패턴(훅, 증명, 콜아웃, 비교, 크롬 및 CTA) 중에서 선택하여 릴의 각 순간에 최적화된 효과를 적용할 수 있습니다. 또한, 플랫폼 UI와 발언자의 얼굴을 침범하지 않도록 안전한 배치 기하학을 제공하며, 엄격한 콘텐츠 보안 정책(CSP)을 적용하여 외부 리소스나 스크립트 없이 안전하게 렌더링합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/personify-gg/personify-video-skills/tree/HEAD/skills/html-motion-overlays

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

HTML/CSS Motion-Graphics Overlays ("Paper.design for Video")

Instead of ugly default video-editor text stickers or hallucinated AI text baked into video frames, design pixel-crisp HTML/CSS/SVG overlays on a 1080×1920 transparent canvas rendered over the finished reel.

Step 1: Define the Brand Design Contract (frame.md)

Lock every overlay in a reel to one visual design system:

# Frame Design Contract
- **Primary / Accent / Surface / Ink / Highlight:** Validated hex colors (e.g. `#111111`, `#2563EB`, `#FFFFFF`, `#0F172A`, `#FACC15`)
- **Typography:** Display font + clean sans body font (tabular numerals for stats/prices)
- **Corner Radius:** e.g. `16px` cards, `999px` pills
- **Visual Rules:** Max 2 overlays visible simultaneously; high contrast (>= 4.5:1); never cover speaker eyes/mouth.

Step 2: Pick from the 16 Proven Motion Block Patterns

CategoryBlock IDsBest Moment in Reel
Hookeditorial-hook-title, kinetic-word-burst0.0–2.8s opening thumb-stop title
Proofstat-counter-card, product-proof-frame, notification-toast, social-comment-sticker3–12s receipts, revenue/time metrics, Stripe/iOS pings, buyer comments
Calloutpill-step-badge, checklist-reveal, quote-pull-card, lower-third-speakerStep numbers (Step 1 of 3), checklists, speaker credibility
Comparisonus-vs-them-card, before-after-split-badge, price-anchor-tagOld Way vs New Way, price anchor ($2,500 agency → $39/mo)
Chrome & CTAurl-browser-bar, progress-timeline-bar, cta-end-cardWebsite demos, retention progress bar, final 2.5s CTA card

Step 3: Face-Safe Geometry (1080×1920 Vertical Canvas)

Always keep overlays clear of both platform UI chrome and the speaker's face:

  • Top safe margin: y >= 160px (clear of TikTok/Reels top search & status bars)
  • Right safe margin: x <= 920px (clear of like/comment/share icon column)
  • Bottom safe margin: y <= 1520px (clear of caption description & audio bar)
  • Face exclusion band: Given normalized speaker eye/face center faceY (0.15 to 0.65, default 0.38 = 730px), keep cards outside [faceY - 0.14, faceY + 0.16] (roughly 460px–1040px). Place hooks in the top band (180–440px) and proof cards/captions in the lower-mid band (1080–1460px).

Step 4: Strict Security & Rendering Rules

When outputting standalone HTML/CSS for headless Chromium PNG/WebM rendering:

  • Embed <meta http-equiv="Content-Security-Policy" content="default-src 'none'; style-src 'unsafe-inline'; img-src data:;">
  • Zero <script> tags, zero javascript: URLs, zero external @import or remote url(http...) fetches, zero on*= inline handlers.
  • Escape all dynamic text; use pure CSS animations (pop-in, slide-up, fade) and inline SVG icons.

Output Format

Return:

  1. frame.md token block
  2. Ordered JSON array of MotionBlockSpec items (blockId, startSec, endSec, placement, animation, props)
  3. Optional standalone CSP-safe HTML/CSS snippet for any custom preview card.

관련 스킬