Communitygithub.com

motionrendang

Rhara's motion-design style: animate designs (Canva pages, product photos, text, brand) into MP4s, and make transparent/green-screen motion overlays for talking-head content. Use when asked for motionrendang, to animate a design, or for content overlays.

Qu'est-ce que motionrendang ?

motionrendang is a Claude Code agent skill that rhara's motion-design style: animate designs (Canva pages, product photos, text, brand) into MP4s, and make transparent/green-screen motion overlays for talking-head content. Use when asked for motionrendang, to animate a design, or for content overlays.

Compatible avec✓Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/rharabee022/Skill-AI-Motion-Overlay-Motion-Rendang./tree/HEAD

Demander à votre IA préférée

Ouvre une nouvelle conversation avec cette compétence d'agent déjà préchargée.

Documentation


name: motionrendang description: Rhara's motion-design style: animate designs (Canva pages, product photos, text, brand) into MP4s, and make transparent/green-screen motion overlays for talking-head content. Use when asked for motionrendang, to animate a design, or for content overlays.

Que fait motionrendang ?

Rhara's motion style, learned from 5 reference videos (a text-animation explainer, a fast-food product spot, a ride-app promo, and two abstract shape-morph loops). Colors, shapes and branding ALWAYS come from the user's own design/brief — never copy the references' colors or logos. What this skill carries is HOW things move, how products are shown, typography behavior, color ROLES and shape language.

Reply to Rhara in Indonesian (casual).

Workflow

  1. Get the source. Usually a Canva design + page numbers ("06 Okt feed hal 19–21").
    • search-designs (sort modified_descending) → find by title.
    • read-design with filter.fields=[design_metadata,page_metadata,design_content,thumbnails] + page_indices → page size, text, thumbnails (thumbnails are saved locally under /tmp/claude-tool-results/*/ — usable as image source).
    • read-design with open_transaction:true → full element JSON: positions (top/left/width/height in page px), font sizes, colors, lineHeight, letterSpacing, textAlign, z-order, shapes (SVG paths), image mediaIds. Use this to rebuild every text as a live layer.
    • Export/download URLs and asset downloads are usually blocked in this sandbox (proxy 403). Fallback: crop photos from the 400×500 page thumbnails, upscale with LANCZOS + light UnsharpMask. Tell Rhara the photos are soft and ask for the original photos / logo (PNG/SVG, cut-out version if a shape sits between background and model) for an HD version.
    • If assets are uploaded instead, use them directly.
  2. Rebuild the page as layers in one HTML file (stage = page size, e.g. 1080×1350 feed, 1080×1920 story/TikTok). Text = real text with local fonts; photos = images; shapes = SVG; logo = SVG (redraw as strokes so it can draw-on if no file).
  3. Choreograph with the rules below; write a deterministic render(t) (no CSS animations/transitions).
  4. Render with Playwright + system Chrome, frame by frame, piped into ffmpeg (script below). 30fps. ~13s for 3 pages renders in ~25s.
  5. Check: render stills at key times into a contact sheet and look at them; then render the MP4 and make a 4fps tile sheet of it and look again. Fix and re-render before sending.
  6. Deliver with SendUserFile (display render). Say in a few lines: flow per scene, what was substituted (fonts, logo redraw, soft photos), what to send for HD, offer to sync to a song/tempo.

For content overlays (text/stickers over Rhara's own videos) follow the "Overlay mode" section instead of steps 1–2; content plans usually come from the Google Sheet "Pixie Wholesale - Content Calender" (tab per month: Content Plan, Hook, Script, Caption columns) — build the overlay text from the hook, script beats and caption CTA, never invent facts (e.g. which day the next episode airs).

Fonts available locally (no network)

Montserrat (variable 100–900), Archivo Black, Anton, Inter/Inter Display, DM Sans, Poppins, Fira Sans, Crimson Text (+Italic), Cardo, Lora, Bitter, Roboto, Open Sans, Source Sans 3. No script fonts → substitute elegant serif italic and say so. Paths under /usr/share/fonts/truetype/google-fonts/ofl// — load with @font-face file:// URLs. To match a Canva font that is wider/taller than the substitute: set font-size from the measured cap height (cap ≈ 0.72em), then scaleX an inner span to the measured width. Place by cap-top using canvas measureText (actualBoundingBoxAscent).

1. Motion rules (measured from refs)

  • Entrances 0.13–0.33s (bigger hero moves 0.5–1.1s). Section transitions ~0.25s out + 0.3–0.7s in. Hold 2–5s. ~4–7s per scene.
  • Stagger: letters 0.05–0.09s, words 0.1–0.25s, list/pills/lines 0.08–0.15s; rows cascade L→R.
  • Easing: expoOut for snaps; backOut (overshoot) for pills/stickers/CTA/products; cubicInOut / expoInOut for big scale changes and transitions; sineInOut for color fades. Never plain linear fades.
  • Offset properties: change size first, position ~0.25–0.4s later (frame shrinks in place, then slides). Never all props in sync.
  • Fast moves get directional motion blur: SVG feGaussianBlur stdDeviation="X 0" on the element, X proportional to eased velocity.
  • Depth: focused element sharp + slightly larger; others blurred. Product overlaps text; props both behind and in front.
  • Holds are alive: slow zoom (+3%), gentle float (±4px sine), pulse once on a beat.
  • Hook in the first 1–2s. Cuts/pops on beats (~0.4–0.7s grid; 120bpm = 0.5s).

2. Transition library

  • Title-box wipe: accent box grows from its anchored edge, text slides in behind (clipped).
  • Brand band: wide band in the brand color with wavy (sine) leading and trailing edges sweeps L→R (cubicInOut ~1.1s, blur by velocity); switch scenes when it fully covers. Take the wave from a shape in the user's design if there is one.
  • Box expand → frame shrink: a small CTA/label box expands to fill the screen (expoInOut ~0.55s), then shrinks into the next scene's photo frame (size first, then position), brand tint fades off revealing the photo.
  • Radial soft-edge wipe: big circle of next bg color grows from an edge.
  • Shape-shrink to anchor: full frame → card → small badge kept on screen (brand mark as anchor).
  • Logo-as-mask zoom: giant logo shape filled with previous scene scales down fast (expoOut ~0.6s) revealing new bg; inside cross-fades to solid logo.
  • Thick rounded swoosh stroke sweeping across, carrying a card.
  • Button morph: pill CTA collapses to its icon circle → circle scales to fill screen = next bg.
  • Whip-pan with heavy horizontal blur; sequential blur-out of words in reading order; camera push-in while bg color floods.

3. Typography behaviors

  • Line reveal: each line in an overflow-hidden mask, words translateY(110%)→0, stagger 0.1s.
  • Tracking-in: subtitle letter-spacing 0.55em→0.04em + fade.
  • Kinetic slam: punch word scale 1.35–1.45→1 + blur→0 + fast opacity, on beat; mix small connector words with huge punch words, alternate accent colors.
  • Letter stagger: each char fade + rise 14–18px + unblur 6px, 0.05–0.09s/char (great for italic/serif/script).
  • Scramble/decrypt (monospace, random glyphs resolve L→R), split-flap (cells flip & settle staggered; countdown 1 flip/s), draw-on (stroke-dashoffset + pen object, then fill), highlight marker (bar swipes L→R behind key phrase, rest dims), counter (count-up with expoOut then underline draws), typing with caret.
  • Slide-in from mask with horizontal motion blur for bold stacked headlines; two lines can come from opposite sides.
  • A section title can animate in the style of its own content.

4. Showcase recipes

  • Fashion/product feed page: photo reveals (clip wipe) with zoom 1.14→1 then slow drift; logo draws on; headline line-reveal; subtitle tracking-in; body fades up.
  • Promo page: photo enters from the side with motion blur; label box wipes in; headline slams word by word; CTA/"NOW!" box pops with overshoot then pulses once.
  • Closing/CTA page: photo frame from transition + float; script/italic letter stagger; bold words slide from left with blur; quote lines stagger; CTA bar wipes L→R, then tap: press scale 0.95, ring ripple, shine sweep.
  • Food/product spot: brand mark grows from a stroke and morphs; shrinks to anchor badge; headline from both sides with blur; product drops from top with overshoot; props fly out radially (some behind, some in front of letters); float; logo-mask zoom outro.
  • App/UI promo: phone rises with blur + glow bloom; UI cards float with soft shadow; search types; list stagger; focused row enlarged, others blurred; cursor click; CTA morph → logo draws itself → end card.

5. Color roles (use the user's palette)

  • Background (white / dark / brand flat), 1 main accent (boxes, bands, transitions — usually the design's strongest brand color), 1–2 secondary accents (alt headline line, CTA), neutral text, muted caption color.
  • Accent on max 1–2 elements per frame. Transitions reuse the main accent so scenes feel connected.
  • Modes: dark (dark bg + dot grid + vignette glow), bold brand (two flat brand colors alternate as full-frame bgs), soft (light bg, brand only in logo/punch words/glows/swooshes), neon chapters (dark navy/purple + one gradient palette per chapter, palette switch carried by a transition), pastel flat (bg flat + 2–3 contrasting shape colors, bg changes every ~2 beats).
  • Multi-color without clashing (Rhara likes this, not one flat color): one family of cool colors (e.g. denim blue, light blue) + complementary warm accents (butter yellow, coral, soft pink) + cream cards + one dark ink for text/outlines/shadows. Use soft 2-stop gradients on fills.

6. Shape language

Rounded rects, pills/chips, sticker labels; thick rounded strokes/swooshes; circles that grow to fill; burst tick lines; soft blurred glow blobs behind hero objects; logos rebuilt as strokes for draw-on.

7. Shape-morph & loop motion (refs D/E)

  • One hero shape travels the whole piece and keeps transforming (continuous match-cut), almost no dead holds.
  • Morph = interpolate size + corner radius + rotation + color together: square → rounded → circle, circle → tall capsule (equalizer bar), bar → dot, thin line → thick pill that pushes neighbours apart.
  • Echo/ghost layer: copy of the shape at 30–50% opacity, slightly bigger and rotated a few degrees, lagging behind.
  • Orbiting dot particles with a fading tail; dots merge/absorb into one; one shape clones into two.
  • Transitions are shapes: zoom-into-shape (shape scales to fill = new bg), flood circle, iris ring (ring radius grows, then stroke width grows inward until solid), split-slice (shape cut by a center seam, halves slide opposite ways), bead chain scrolling sideways.
  • Ball physics: drop in with expoOut (~1.8s), hang, leave with easeIn; next motion starts before the previous ends; small squash on landings.
  • Sync every morph/bg switch to beats (~0.46s at 130bpm, bg every ~2 beats). Design as a seamless loop when possible (last frame = first frame).

8. Overlay mode (motion overlays for talking-head content)

Use when Rhara wants overlays for her own videos (e.g. Pixie Wholesale TikTok/IG). Approach: commercial edit but calm — easy to watch, never dizzying.

  • Canvas 1080×1920, transparent page (html,body{background:transparent}), screenshot with omit_background=True.
  • Safe zones: hook in the top third (y≈280–800), lists/tags y≈1000–1450 left-aligned, lower third ≤ y≈1600; keep x>940 between y≈900–1550 free (TikTok right rail). Remind Rhara she can move/scale the layer if it covers the face.
  • Structure per video: label pill + hook lines (0–4.5s) → hook collapses, compact header pill stays at top → beat-by-beat cards following the script (numbered tags, do/don't cards, checklist, timer…) → CTA (follow / chat admin lower third with brand badge + pill growing out of it, address line).
  • Font trio with fixed roles: heavy display (Archivo Black) for hook lines; friendly sans (DM Sans 600–800) for labels/body/meta; bold serif italic (Crimson Text Bold Italic) for ONE emotional accent word per line in an accent color, with a butter highlight bar swiping in behind it.
  • Sticker look: cream cards with 4px ink border + hard offset ink shadow (no blur — keeps chroma key clean), slight alternating tilt (±1–2°), gentle float.
  • Emoji: never use system emoji. Draw them as SVG in one style (palette gradients + ink outline): eyes (pupils glance), grimace (sweat drop), worried face, pointing hand, fist (squeeze pulse), check (tick draws on), cross, pin, chat bubble, 4-point sparkles (twinkle). Pin each emoji to the corner of the card it belongs to every frame (stick() from offsetLeft/offsetWidth) so it never covers text.
  • Motion: entrances expoOut 0.55–0.6s; backOut overshoot kept small (c1≈1.2); dot → pill morphs for labels; stagger 0.12–0.2s; holds float ±3–6px; exits scaleY/scale + fade 0.35–0.4s; no shake, no flashing.
  • Countdown timer: cream disc + track ring + gradient progress ring + big number sliding per second + orbiting dots; at 0 iris-close, then circle → pill result ("LEPAS!").
  • Deliver per video: _PREVIEW.mp4 (overlay on a blurred sample photo), _GREENSCREEN.mp4 (pure #00FF00, CapCut: Overlay → Chroma key/Hapus warna), and _ALPHA.mov (ProRes 4444, ~60MB, CapCut desktop) only on request. One ffmpeg call with split=3 makes all three from the PNG pipe:
[0:v]format=rgba,split=3[a][b][c];color=c=0x00FF00:s=1080x1920:r=30[g];[g][a]overlay=shortest=1,format=yuv420p[gs];
[1:v]scale=1080:1920:force_original_aspect_ratio=increase,crop=1080:1920,boxblur=6,loop=-1:1,fps=30[bg];[bg][b]overlay=shortest=1,format=yuv420p[pv];[c]format=yuva444p10le[al]

(-c:v prores_ks -profile:v 4444 -qscale:v 12 for the alpha output.) Never use green in the overlay palette.

  • Placeholders the plan leaves open (model names, numbers) stay generic and are flagged in the reply.

9. Sound effects (synthesized, copyright-free)

  • Every visible event gets a soft SFX, generated with numpy (engine/sfx.py, no downloads): pop/popS (card, emoji, label appears), swipe/swipeOut (hook in/out, card exits), thump (big title), nope (soft "wrong" for don't-cards), ding (check / result), twinkle (sparkles), bubble (comment/notification), tick (each countdown second).
  • Event list = the same timestamps used in render(t); keep it in a JSON next to the overlay. Peak ≈ -6 dBFS so it sits under the voice-over.
  • Deliver _SFX.wav separately plus muxed _PREVIEW_SFX.mp4 / _GREENSCREEN_SFX.mp4. Background music: suggest CapCut's licensed library; if Rhara gives a track, snap pops to its beats.

Render engine

HTML skeleton notes:

  • One #stage (page size, overflow hidden). Scenes as absolutely positioned divs; toggle with display:block/none (NOT visibility — a child with visibility:visible shows through a hidden parent). If a child's visibility must be toggled, restore it with inherit.
  • window.setup() runs once after fonts load (measure/fit text). window.render(t) sets every style from t.
  • Helpers:
const clamp=(x,a=0,b=1)=>Math.max(a,Math.min(b,x));
const E={expoOut:x=>x>=1?1:1-Math.pow(2,-10*x),
 expoInOut:x=>x<=0?0:x>=1?1:x<.5?Math.pow(2,20*x-10)/2:(2-Math.pow(2,-20*x+10))/2,
 cubicInOut:x=>x<.5?4*x*x*x:1-Math.pow(-2*x+2,3)/2,
 backOut:x=>{const c1=1.70158,c3=c1+1;return 1+c3*Math.pow(x-1,3)+c1*Math.pow(x-1,2)},
 sineInOut:x=>-(Math.cos(Math.PI*x)-1)/2};
const P=(t,s,d,e='expoOut')=>E[e](clamp((t-s)/d));
const lerp=(a,b,k)=>a+(b-a)*k;
const vel=(t,s,d,e)=>Math.abs(P(t+1/60,s,d,e)-P(t-1/60,s,d,e))*30; // for motion blur
  • Draw-on: <path pathLength="1">, strokeDasharray='1 1', strokeDashoffset=1-k.

render.py:

import subprocess, sys
from playwright.sync_api import sync_playwright
FPS=30; OUT=sys.argv[1]; DUR=float(sys.argv[2])
ONLY=[float(x) for x in sys.argv[3].split(',')] if len(sys.argv)>3 else None
with sync_playwright() as p:
    b=p.chromium.launch(executable_path='/usr/bin/google-chrome',args=['--allow-file-access-from-files','--disable-web-security'])
    pg=b.new_page(viewport={'width':1080,'height':1350})  # set to stage size
    pg.goto('file:///ABS/PATH/index.html'); pg.evaluate('document.fonts.ready'); pg.wait_for_timeout(500); pg.evaluate('setup()')
    if ONLY:
        for t in ONLY: pg.evaluate(f'render({t})'); pg.screenshot(path=f'{OUT}_{t:05.2f}.png')
    else:
        ff=subprocess.Popen(['ffmpeg','-v','error','-y','-f','image2pipe','-framerate',str(FPS),'-i','-','-c:v','libx264','-preset','veryfast','-crf','18','-pix_fmt','yuv420p','-movflags','+faststart',OUT],stdin=subprocess.PIPE)
        for i in range(int(DUR*FPS)): pg.evaluate(f'render({i/FPS})'); ff.stdin.write(pg.screenshot(type='jpeg',quality=94))
        ff.stdin.close(); ff.wait()
    b.close()

Usage: python3 render.py chk/f 0 "0.5,2,4.2" for stills; python3 render.py out.mp4 13.6 for the video. Write check stills into a fresh folder each round (don't bulk-delete). Check sheet: ffmpeg -i out.mp4 -vf "fps=4,scale=180:-1,tile=11x5" sheet.jpg.

Audio: no music unless Rhara gives a track; if given, detect onsets (RMS diff peaks) and snap slams/pops/cuts to them, then mux with ffmpeg.

Rules from Rhara

  • Colors, shapes and branding change per project — adapt, never copy the references.
  • Colors: not one flat color — several colors are fine as long as they harmonize; pay attention to font pairing and to emoji shape and color.
  • Motion should make people want to keep watching: commercial but not stiff, never dizzying.
  • Ignore platform end-cards (TikTok outro) in reference videos — they are not material.
  • When animating a character illustration: keep the original design as-is, only add supplementary effects on top.
  • Don't reproduce third-party brand logos from the references.
  • Overlay text approval: before rendering, show EVERY text that will appear as an editable form widget (one field per element, prefilled) and render only after Rhara submits it. Placeholders from the content plan (model names, results, proof) must be flagged.
  • No "#1 / #2" style numbering or other unusual typing unless Rhara confirms it first (use words like "PERTAMA", or icons instead of numbers when she asks).
  • No pointing-hand emoji (can read as a middle finger) — use round arrow badges. Check face emoji expressions read correctly (worried ≠ angry: brows rise toward the center).
  • Keep Rhara's own typing exactly as she wrote it in the form (spacing, "!!", spelling).

Skills associés