Communitygithub.com

html-motion-overlays

Design brand-locked HTML/CSS/SVG motion-graphics overlays ("Paper.design for Video") for 1080x1920 vertical reels using 16 curated block patterns, a frame.md Brand Design Contract, face-safe placement geometry, and strict CSP security rules.

What is html-motion-overlays?

html-motion-overlays is a Claude Code agent skill that design brand-locked HTML/CSS/SVG motion-graphics overlays ("Paper.design for Video") for 1080x1920 vertical reels using 16 curated block patterns, a frame.md Brand Design Contract, face-safe placement geometry, and strict CSP security rules.

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

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

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.

Related Skills